Node.js
In depthFramework
Also known as: Node
JavaScript runtime built on the V8 engine that lets JavaScript run outside the browser.
Node.js, explained
Written by EduVerseWhat it is
Node.js is a runtime: a program that executes JavaScript on a server or your own laptop instead of in a browser. It’s built on Chrome’s V8 engine and adds what browsers don’t offer, such as access to files and the network. It comes with npm, the package manager you use to install libraries and tools.
Why teams use it
Node handles many connections at once without a thread per request, using an event loop and non-blocking I/O, which suits APIs, chat and other real-time apps. Using JavaScript on both frontend and backend also means one language for the whole team. For heavy CPU work, languages like Go or Java are often a better fit.
An example from work
Even on a pure frontend project you need Node.js: npm install fills node_modules, and npm run dev starts the development server. A classic first-day problem: the project expects a newer Node version than the one on your laptop, and npm prints EBADENGINE warnings or the build fails, which a version manager like nvm fixes.
Our own explanation, not a quote from the book.
Where it fits
Server-side JavaScript, APIs, real-time applications
Coverage in the book
Covered in depth: multiple pages with explanations, examples and simulations.