Learn JavaScript by writing real code

Build interactive web apps with the language of the web.

Each chapter explains one idea, shows a worked example and then asks you to write and run your own JavaScript code in the browser, with tests that check your answer.

The JavaScript course is free: every chapter, example and exercise is open without a membership.

JavaScript chapters

  1. Variables
  2. Conditionals
  3. Loops
  4. Arrays
  5. Functions
  6. Events
  7. Objects
  8. The DOM
  9. Fetch & APIs
  10. Async & Await
  11. Classes
  12. Modules
  13. Map & Set
  14. Closures
  15. Error Handling
  16. Regular Expressions
  17. Destructuring & Spread
  18. Node & npm
  19. Iterators & Generators
  20. Testing Your Code
  21. Debugging Like a Detective
  22. Reading Other People’s Code
  23. Performance: Measure, Then Optimize
  24. Security Basics
  25. Writing Production-Grade Code
  26. Capstone: Design a Small System