Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

In an ES module, which statement is true?

  1. A Imports are hoisted and resolved before any code runs
  2. B require() can be used interchangeably with import
  3. C Modules run in non-strict mode by default
  4. 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.

All Javascript MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as