Free through lesson 3

JavaScript for Beginners

Learn JavaScript — the language that brings web pages to life — by running it in the browser with nothing to install. From variables, control flow, arrays, objects and functions through to the DOM, async code and classes. Fifty lessons that take you to the point where you can read code, write it, and fix it yourself.

about 9.5 hours in total (estimate)

Slides for this course (for classes and in-house training) →

Curriculum

The 50 lessons are grouped into seven chapters. Working through them in order is the best way, but you are welcome to dip into whatever interests you. From chapter 5 (the DOM) onwards you can preview a working page on the spot as you follow along.

Chapter 1 — Getting started (lessons 1–6)

Grasp what JavaScript is responsible for, then cover script tags, variables, data types, strings and numbers. Come out the other side and you can write code and run it in the browser.

Chapter 2 — Control flow (lessons 7–13)

Branch with if and switch, repeat with for and while. You gather the tools that give a program its flow, and finish by building a number-guessing game.

Chapter 3 — Data structures (lessons 14–22)

Arrays and objects, then map, filter and reduce. Once you can handle several pieces of data at once, the range of things you can write grows enormously.

Chapter 4 — Functions (lessons 23–29)

Give a piece of work a name and pull it out. You cover arrow functions, scope, closures and this, then tidy long code by splitting it into functions.

Chapter 5 — The DOM (lessons 30–37)

From here on you are moving things on screen. You learn to find elements, change them and handle events, and finish by assembling a to-do list.

Chapter 6 — Async code and networking (lessons 38–44)

Starting from exception handling and moving on to promises, async/await and fetch. By the end you can fetch data from a server and put it on the page.

Chapter 7 — Going further (lessons 45–50)

Classes and inheritance, splitting into modules, localStorage, and debugging technique. This chapter hands you the map for everything beyond the course.

Once you have finished all 50 lessons, move on to a framework (Next.js) or typed development (TypeScript). Membership unlocks every course.