← Node.js & Express learning pathNode.js & Express · Module 1 of 10
What is Node.js?
Node.js runs JavaScript on the server, outside the browser.
📖 Key ideas
- Node.js uses Chrome's V8 engine to run JavaScript on servers and laptops.
- It is non-blocking and event-driven: great for many simultaneous connections.
- Run a file with node app.js.
- npm installs packages; package.json lists them.
- Used for APIs, real-time apps, tools and scripts.
💡 Real-life example: Node is a single waiter who takes many orders without waiting at each table for the food to cook.
Node.jsJavaScript runtime outside the browser
V8JavaScript engine from Chrome
npmNode package manager
Non-blocking I/ODoes other work while waiting for input/output