01

Introduction to JavaScript

What JavaScript is and where it runs, your first commands with console.log(), and how to write comments.

02

Variables

Declare variables with let and const, name them well, and meet the primitive types, typeof, undefined and null.

03

Numbers

Calculate with arithmetic and assignment operators, use the Math methods, and understand NaN and Infinity.

04

Strings

Create strings, measure them, access characters, build text with template literals, use common methods and turn strings into numbers.

05

Booleans

Compare values, understand type coercion, combine conditions with logical operators, and learn which values are truthy or falsy.

06

Conditional Statements

Choose what your code does with if, else, else if chains, the ternary operator and switch.

07

Loops

Repeat code with for, while and do...while loops, and stop or skip iterations with break and continue.

08

Arrays (Basics)

Create arrays, read and change their elements, add and remove items, search them with includes() and indexOf(), and loop through them.

09

Functions (Basics)

Write functions to avoid repeating yourself: declare and call them, pass arguments, return values and understand their scope.

11

Functions (Advanced)

Function expressions, arrow functions and how they differ from regular ones, default parameters, functions as values, callbacks and anonymous functions.

12

Array Methods (Modern Approach)

Process arrays the modern way with forEach(), map(), filter(), find() and findIndex(), and chain methods together.

13

Destructuring & Spread

Unpack arrays and objects with destructuring, use default values, and copy or merge data with the spread and rest operators, without mixing up copies and references.

14

Working with Data Structures

Work with realistic data: arrays of objects, objects containing arrays, nested access with optional chaining (?.) and nullish coalescing (??), and map() and filter() on lists of objects.

15

More Array Methods

More array tools: some() and every(), reduce(), slice() and splice(), join() and split(), sort() and reverse(), flat(), Array.from(), and which methods change the original array.

16

More String Methods

More string methods: slice() and substring(), replace() and replaceAll(), padStart() and padEnd(), repeat(), startsWith() and endsWith().

17

Set & Map

Use Set for unique values and Map for key–value pairs, see when a Map beats a plain object, and iterate over both.

18

Scope & Closures

Understand where variables live: global, local and block scope, var and hoisting, the scope chain, and closures with practical uses.

19

Error Handling

Tell syntax errors from runtime errors, read error messages, catch errors with try...catch and finally, and throw your own.

20

Working with JSON

Convert data to and from JSON with JSON.stringify() and JSON.parse(), and handle data shaped like an API response.

21

Classes (OOP Basics)

Write classes with a constructor and methods, create instances with new, use this, and extend classes with inheritance.

22

Final Challenges

Three final challenges that combine everything: processing data, building classes and transforming strings.

23

What's next?

You have finished the course: here is what to learn next.

JavaScript course

23 units · 162 chapters · 1737 exercises

This course takes you from your first console.log() to modern JavaScript. The first units cover what every program needs: variables, numbers, strings, booleans, conditions and loops. You then work with arrays, objects and functions, before moving to the way JavaScript is written today: arrow functions, array methods such as map(), filter() and reduce(), destructuring and the spread operator. The last units go deeper with Set and Map, scope and closures, error handling, JSON and classes, and three final challenges bring everything together.