Quick Reference & Exam Preparation Guide
Focus on concepts, not deep coding. Remember: Node.js is best for I/O operations, worst for CPU-intensive tasks.
Hover to reveal answer
Non-blocking I/O & Event Loop
Single-threaded asynchronous architecture that handles many connections efficiently.
Hover to reveal answer
Hover to reveal answer
(Use Worker Threads or other languages for these)
Hover to reveal answer
Node Package Manager
World's largest software registry with over 1.5 million packages.
Key commands: npm init, npm install, npm start
This is the most basic Node.js server. Must know for exam.
CommonJS modules (require/exports) vs ES6 modules (import/export).
| Command | Purpose |
|---|---|
npm init -y |
Initialize project with default settings |
npm install express |
Install Express framework |
npm install --save-dev nodemon |
Install dev dependency |
npm start |
Run start script from package.json |
npm run dev |
Run custom "dev" script |
http/https - Web serversfs - File system operationspath - File/directory pathsos - Operating system infoevents - Event handlingutil - Utility functions