DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Node.js
What's the main practical difference between CommonJS's require() and ESM's import in terms of resolution timing?
A
No difference
B
require() resolves synchronously at the point it's called; ESM's import is resolved as part of an asynchronous module graph
C
import is always faster
D
require() only works with npm packages
Check Answer