- What is Node.js? Explain its architecture.
- What is the event loop in Node.js? How does it work?
- What are Streams in Node.js?
- What are the different types of Modules in Node.js?
- What is process.nextTick() and how is it different from setImmediate()?
- How does Node.js handle asynchronous operations?
Callback, Promises, and Async/Await.
- What is the difference between require and import in Node.js?
- How does error handling work in Node.js?
Try-catch, error-first callbacks.
- What is the cluster module in Node.js?
Used for scaling an application using multiple processes.
- What is the purpose of middleware in Node.js?
Express.js
- What is Express.js and why is it used?
- Explain middleware in Express.
Types: Built-in, Third-party, and Custom.
- How can you handle errors in Express?