# Node.js

> A tool that runs JavaScript outside the browser. Servers use it a lot.

**Field:** Software Development  
**Category:** Compilers & Runtimes  
**Also known as:** Node, NodeJS

## Think of it like

Think of it like taking a fish out of its tank and giving it legs. Now it can walk on land too.

## Definition

Node.js is a program that runs JavaScript outside the browser. Before it, JavaScript could only run inside web pages. It is built on the same engine that runs JavaScript in Chrome. It handles lots of users at once. It never sits still while it waits. It comes with npm, the largest store of code packages in the world.

## Example

Node.js was created by Ryan Dahl and first released in 2009. Jack uses it to run his shop's server and his build tools.

## Example code

```console
$ node -e 'console.log(1 + 1)'
2
```

Node.js runs one line of JavaScript and prints the answer.

## Why it matters

It lets you use one language for both the page and the server. Most web build tools run on it.

## Common mistake

Running slow, heavy maths on the main thread. It blocks every other user until it ends.

## Three principles

- **JavaScript off the page.** On servers and laptops.
- **Never sits idle.** Handles many users at once.
- **Comes with npm.** A huge store of packages.

## Related terms

- [JavaScript](https://learn.benibix.com/term/development/javascript)
- [npm](https://learn.benibix.com/term/development/npm)
- [Express.js](https://learn.benibix.com/term/development/express)
- [Deno](https://learn.benibix.com/term/development/deno)
- [Electron](https://learn.benibix.com/term/development/electron)
- [Version Manager](https://learn.benibix.com/term/development/version-manager)
- [Runtime Environment](https://learn.benibix.com/term/development/runtime-environment)

## Told apart from

- [Node.js vs Express](https://learn.benibix.com/compare/nodejs-vs-express): People think Node.js is a framework like Express, and it is not. Node.js is the program that runs JavaScript outside the browser. Express is a small framework that runs on Node.js and adds routes and middleware. You need Node.js to use Express, but not the other way round.

---

Source: https://learn.benibix.com/term/development/nodejs
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
