In an ES module, which statement is true?
- A Imports are hoisted and resolved before any code runs
- B require() can be used interchangeably with import
- C Modules run in non-strict mode by default
- D Imports create copies of the exported values
Answer
Imports are hoisted and resolved before any code runs
The module graph is resolved statically before execution, which is what enables tree-shaking. Imports are live bindings, not copies.





