Quiz Challenges
100
Question 78 of 100
78%
78
Which statement correctly describes how Node.js's CommonJS `require()` differs from ES Module `import`?
A
require() loads and executes modules synchronously, caching them by resolved file path; import is statically analyzed and its specifiers are resolved before the module runs
B
require() supports live bindings to exported values the same way import does
C
import statements are hoisted only in CommonJS files, not in native ES modules
D
require() and import are fully interchangeable in Node.js and can always be mixed freely within the same file
Submit Answer
Previous
78
/
100
Next