Introduction to JavaScript
What JavaScript is and where it runs, your first commands with console.log(), and how to write comments.
Variables
Declare variables with let and const, name them well, and meet the primitive types, typeof, undefined and null.
Numbers
Calculate with arithmetic and assignment operators, use the Math methods, and understand NaN and Infinity.
Strings
Create strings, measure them, access characters, build text with template literals, use common methods and turn strings into numbers.
Booleans
Compare values, understand type coercion, combine conditions with logical operators, and learn which values are truthy or falsy.
Conditional Statements
Choose what your code does with if, else, else if chains, the ternary operator and switch.
Loops
Repeat code with for, while and do...while loops, and stop or skip iterations with break and continue.
Arrays (Basics)
Create arrays, read and change their elements, add and remove items, search them with includes() and indexOf(), and loop through them.
Functions (Basics)
Write functions to avoid repeating yourself: declare and call them, pass arguments, return values and understand their scope.
Objects
Group data in objects: create them, read, add, change and delete properties, add methods, meet this, loop with for...in and nest objects.
Functions (Advanced)
Function expressions, arrow functions and how they differ from regular ones, default parameters, functions as values, callbacks and anonymous functions.
Array Methods (Modern Approach)
Process arrays the modern way with forEach(), map(), filter(), find() and findIndex(), and chain methods together.
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.
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.
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.
More String Methods
More string methods: slice() and substring(), replace() and replaceAll(), padStart() and padEnd(), repeat(), startsWith() and endsWith().
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.
Scope & Closures
Understand where variables live: global, local and block scope, var and hoisting, the scope chain, and closures with practical uses.
Error Handling
Tell syntax errors from runtime errors, read error messages, catch errors with try...catch and finally, and throw your own.
Working with JSON
Convert data to and from JSON with JSON.stringify() and JSON.parse(), and handle data shaped like an API response.
Classes (OOP Basics)
Write classes with a constructor and methods, create instances with new, use this, and extend classes with inheritance.
Final Challenges
Three final challenges that combine everything: processing data, building classes and transforming strings.
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.