Lesson 1 of 20
What Node.js is
You know JavaScript runs in the browser. Node.js lets JavaScript run outside the browser — on a server, or your own computer — so you can build back-ends, command-line tools, and full applications in JavaScript. It's what powers the "N" (and back-end) in modern JavaScript development, and it means one language, front-end to back-end. Let's understand what Node is and why it matters.
JavaScript beyond the browser
For years, JavaScript only ran in browsers. Node.js changed that: it's a runtime that runs JavaScript anywhere — on servers, your laptop, cloud platforms. It takes the same JavaScript engine that powers Chrome (V8) and lets it run standalone, plus gives it abilities browsers don't have: reading and writing files, running a web server, accessing the operating system, connecting to databases. So with Node, JavaScript becomes a general-purpose language for building real applications — especially back-ends.
Why Node matters
- One language, full-stack — you write JavaScript for the front-end (browser) and the back-end (Node). No switching languages. This is a huge productivity win and why stacks like MERN (MongoDB, Express, React, Node) are all-JavaScript.
- Build back-ends & APIs — Node is a leading choice for building web servers and APIs (the server-side you learned about in full-stack).
- Vast ecosystem — npm (Node's package manager) is the largest software library in the world; you can install packages for almost anything.
- Fast and scalable — Node's design (an event loop, non-blocking I/O) handles many simultaneous connections efficiently, great for web servers.
- Beyond servers — build command-line tools, scripts, build tools, even desktop apps.
Node is fundamental to modern JavaScript development — learning it opens up back-end and full-stack work.
What Node is (and isn't)
- Node is a runtime — an environment that executes JavaScript (using the V8 engine) outside the browser, with extra capabilities (files, network, OS).
- Node is not a language — it runs JavaScript (the language you know). Node adds server-side abilities to JavaScript.
- Node is not a framework — it's the runtime; frameworks like Express run on Node to make building servers easier (covered later).
So: JavaScript is the language, Node is the runtime that runs it on servers, and Express (etc.) are frameworks built on Node.
What you'll build with Node
In this course you'll use Node to:
- Run JavaScript files and scripts on your computer.
- Use modules and install packages (npm).
- Read and write files.
- Build a web server and a JSON API (with Express).
- Connect to a database, structure a project, and deploy it.
By the end, you'll be able to build real Node back-ends — the server side of full-stack applications.
The mistake beginners make
Thinking Node is a different language — it's not; it's JavaScript running in a different place (a server) with extra abilities. Everything you know about JavaScript applies directly. Also, confusing Node (the runtime) with Express (a framework that runs on it) or npm (its package manager). And expecting browser things (the DOM, window, document, alert) to exist in Node — they don't (there's no browser!); instead Node has server things (files, http, process). Understand Node as JavaScript-on-the-server, with server capabilities instead of browser ones.
Your turn
Reflect on the difference:
// In the BROWSER, JavaScript can:
// - manipulate the DOM (document.querySelector)
// - show alerts, respond to clicks
// - fetch data
//
// In NODE, JavaScript can:
// - read/write files on disk
// - run a web server (handle requests)
// - access environment variables, the OS
// - connect to databases
//
// Same language, different environment and capabilities.
Your turn
- Understand Node.js as a runtime that runs JavaScript OUTSIDE the browser (on servers, your computer).
- Know it enables back-ends and tools in JavaScript, with abilities browsers lack (files, servers, OS, databases).
- Distinguish Node (runtime) from JavaScript (the language), Express (a framework on Node), and npm (its package manager).
Key points
- Node.js is a RUNTIME that runs JavaScript outside the browser (servers, your computer) — enabling back-ends and tools.
- It's JavaScript (the same language) plus server abilities: files, running a web server, OS access, databases.
- One language full-stack (front-end and back-end in JS) — the basis of stacks like MERN; npm is its huge package ecosystem.
- Node has NO browser things (DOM, window, document) — it has server things (http, files, process) instead.
Q&A · 0
Enrol to ask questions and join the discussion.
No questions yet — be the first to ask.