Core Concepts for Node.jss
Core Concepts in Node.js are the ideas that every program relies on: the module system and the event loop. Code is split into CommonJS or ES modules and installed through npm, while the event loop lets a single thread handle many tasks by running callbacks, promises and timers when their work completes.
Stage: Runtime · Part of the Node.js roadmap · Last reviewed 19 November 2026
What to learn in Core Concepts
- Import and export code using both require and ES module syntax
- Manage dependencies with package.json, npm install and lockfiles
- Explain the phases of the event loop in simple terms
- Rewrite callback code with promises and async or await
- Tell process.nextTick from setImmediate and know when each runs
Core Concepts interview questions
How can Node.js handle many requests with a single thread?
Node.js runs JavaScript on one thread but hands slow work such as network and file I/O to the operating system or a thread pool. When that work finishes, the event loop queues the callback, so the thread is never blocked waiting.
What is the difference between CommonJS and ES modules in Node.js?
CommonJS uses require and module.exports and loads synchronously, while ES modules use import and export, load asynchronously and support top-level await. Node.js picks the system by file extension or the type field in package.json.
Where Core Concepts fits in the Node.js roadmap
Core Concepts belongs to the Runtime stage (beginner level), which takes about 22 hours. How Node works.
Other units in this stage
Back to the full Node.js roadmap