Learn JavaScript Online — Free Interactive Course

Free JavaScript Course · Course overview & lesson outline

Learn JavaScript Online — Free Interactive Course

Complete JavaScript for Everyone: 5 chapters of visual explanations and 21 hands-on exercises, from foundations to reliable programs and applied projects.

Learn JavaScript online with 21 free interactive lessons. Practice JavaScript fundamentals, functions, objects and asynchronous code in your browser. Read each explanation, edit the starter code, and try the exercise to check your understanding.

Beginner · 21 lessons · About 3.3 hours. Learn at your own pace.

What you’ll learn

Chapter 1: First Sparks & Core Data

Console megaphones, storage safes (const/let), template literals, and math machines.

  1. 1. The Console Speaker (console.log)
  2. 2. Storage Safes (const vs let)
  3. 3. Mad-Libs Strings (Template Literals)
  4. 4. Number Machines (Math & Modulo)

Chapter 2: Decisions & Repetition

Track switches, strict equality logic, spinning loops, and arrow functions.

  1. 5. Railroad Switches (if & else)
  2. 6. Strict Equality & Logical Gates
  3. 7. The Universal Spinning Wheel (Loops)
  4. 8. Reusable Recipe Cards (Functions)

Chapter 3: Collections & Objects

Bento box arrays, filing cabinets, map/filter superpowers, and analytics pipelines.

  1. 9. The Bento Box (Arrays & Indexing)
  2. 10. The Filing Cabinet (Objects)
  3. 11. Array Superpowers (.map & .filter)
  4. 12. Unpacking the Suitcase (Destructuring & Spread)
  5. 13. Capstone: The E-Commerce Analytics Engine

Chapter 4: Reliable JavaScript & modern data

Scope, safe access, error recovery, and unique collections.

  1. Scope and the lifetime of a value
  2. Optional values without a crash
  3. Recovering from a bad message
  4. Unique values and useful lookups

Chapter 5: Async thinking, objects & a project

Understand asynchronous results, model state, and build a tested data transformation without network access.

  1. Promises: a result that arrives later
  2. Objects that keep their own state
  3. Update a record without changing the original
  4. Project: a checked shopping summary

Is this course free?

All lessons and coding exercises are free to explore without an account. Progress is saved in this browser. Optional account and Supporter features have separate terms.

Can I learn offline?

Open the course and its language while connected. Wait for “Available offline” before disconnecting. Saved lessons and the editor can be used offline. Some lesson images may still need internet access. Cloud sync and AI require internet access.