Setup
JavaScript runs in every browser, so you already have a runtime. For serious development, install Node.js to run JS outside the browser.
Lessons
1
Hello, World!
You can run JavaScript in your browser's console right now. Open DevTools (F12),…
→
2
Variables & Types
JavaScript has three ways to declare variables: var, let, and const. One is old …
→
3
Control Flow & Loops
JavaScript has all the standard control structures, plus a few extras. It's also…
→
4
Functions & Arrow Functions
JavaScript has multiple syntaxes for functions. This is not a bug, it's a featur…
→
5
Arrays & Objects
Arrays and objects are the backbone of JavaScript data. Master these and you've …
→
6
Classes & Modules
ES6 brought classes to JavaScript. They're syntactic sugar over prototypes, but …
→
7
Promises & Async/Await
JavaScript is single-threaded but non-blocking. This sounds impossible and makes…
→
8
Mini Project: Fetch & Display Data
Let's build a real Node.js script that fetches data from a public API and displa…
→
9
Closures & Scope
A closure is a function that remembers the variables from the scope it was creat…
→
10
Destructuring, Spread & Rest
ES6 destructuring lets you unpack arrays and objects in a single expression. Com…
→
11
DOM & Events
The DOM is the browser API that lets JavaScript interact with HTML. It is a tree…
→
12
Modules & npm
JavaScript modules let you split code across files and import only what you need…
→
13
Error Handling & Debugging
JavaScript has one Error type but many error names, a try/catch that silently sw…
→
14
JavaScript Cheatsheet
Modern JS on one page — ES6+ syntax, arrays, async, DOM.
→