Course: Node.js for Backend Developers
JavaScript and Node as a mental model for people who already program: the event loop, async, streams and an HTTP server written by hand before touching a framework.
1What is JavaScript and Why Node.js Exists
JavaScript was born in a browser and ended up serving APIs. Here is what V8 is, what libuv does, and what a Node server wins and loses.
2Modern JavaScript: Variables, Functions and Objects
const, this, prototypes, destructuring and spread: the syntax you read every day in a Node backend, and what it actually does underneath.
3Modules, template literals, and the array methods that replace your loops
Why import sometimes works and sometimes explodes, what optional chaining buys you, and how to stop writing loops to walk an array.
4The event loop: the mental model that changes everything
Why a zero-millisecond setTimeout takes three hundred, why your server goes quiet, and the order your code actually runs in once promises are involved.
5Callbacks and promises: from the nested pyramid to the value that arrives later
Why the (err, data) style forced you to nest, what a promise is inside, and when to fire ten requests at once instead of one after another.
6async/await in practice: async code that reads like normal code
The three mistakes everyone makes: forgetting the await, using forEach with async, and running in series what could run in parallel.
7Globals, modules and the standard library: the ground you work on
process, Buffer, import.meta, package.json exports and the five runtime modules you actually use, with their real output.
8Files, paths and environment variables: what you touch every day
Reading a 2 GB log with readFile isn't slow, it's a bug. fs/promises, streams, join versus resolve, and configuration that fails at startup.
9HTTP from scratch: a server without a framework
createServer, reading the body by hand, a router in a Map, and why Express ends up being the answer: bare HTTP, with its real output.