Course

JavaScript

Thirty lessons that take you from your first variable to fetch, async/await and a working to-do app. Every example runs in the browser, so you can experiment without installing anything.

  • 28 lessons
  • 6 modules
  • Beginner
  • 3 h 23 min
  1. Module 1

    The Basics

    What JavaScript does in a page, variables, types, operators, strings, and how to read the console.

    5 lessons, about 32 min

    1. What JavaScript actually does 6 min
    2. Variables: const, let and the end of var 6 min
    3. Types, coercion and the truth about typeof 7 min
    4. Operators and strings 7 min
    5. The console and reading errors 6 min
  2. Module 2

    Control Flow and Functions

    Conditions, loops, functions, scope, and the two workhorse structures: arrays and objects.

    3 lessons, about 22 min

    1. Conditions: if, switch and the ternary 7 min
    2. Loops: for, while and for…of 7 min
    3. Arrays and objects together 8 min
  3. Module 3

    The DOM

    Select elements, react to events, change content and classes, read forms, and build a small interactive panel.

    5 lessons, about 38 min

    1. Selecting elements 7 min
    2. Changing content, classes and styles 7 min
    3. Events and event delegation 8 min
    4. Forms: reading values and showing errors 8 min
    5. Project: a filterable task panel 8 min
  4. Module 4

    Data and Asynchronous JavaScript

    JSON, fetch, promises, async/await, error handling, dates, and saving data with localStorage.

    5 lessons, about 37 min

    1. JSON: the shape data travels in 7 min
    2. fetch: talking to a server 8 min
    3. Promises: the value that arrives later 7 min
    4. async and await 8 min
    5. Saving data with localStorage 7 min
  5. Module 5

    Modern JavaScript

    let and const, arrow functions, destructuring, modules, classes, and the array methods you will use daily.

    5 lessons, about 36 min

    1. Modern syntax shortcuts worth using 7 min
    2. Destructuring and spread 7 min
    3. map, filter and reduce 8 min
    4. Modules: sharing code between files 7 min
    5. Classes and private fields 7 min
  6. Module 6

    Working in the Real World

    npm, DevTools, debugging, a first test, performance basics, and a capstone to-do app.

    5 lessons, about 38 min

    1. npm, package.json and scripts 7 min
    2. Debugging with the browser tools 7 min
    3. A first automated test 7 min
    4. Performance: measure, then fix 8 min
    5. Capstone: a to-do app that persists 9 min

Check what stuck

One quiz per module, with an explanation after every answer.

Other tracks

Java

23 lessons · Beginner

NEW