Node.js Interview Questions. Fundamentals. 1. What is Node.js?. Node.js is a JavaScript runtime built on Chrome's V8 engine. It enables JavaScript to run on the server, with non-blocking I/O and event-driven architecture…
ReadNode.js Modules & NPM. CommonJS vs ES Modules. // CommonJS (default in Node.js) // utils.js function add(a, b) { return a + b; } module.exports = { add }; // or: exports.add = add; // app.js const { add } = require('./ut…
ReadNode.js Event Loop & Async Programming. The event loop is the heart of Node.js. It enables non-blocking I/O operations despite JavaScript being single-threaded.. The Event Loop. // Event loop phases: // 1. Timers (setTim…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever