This course guides you step by step through learning JavaScript, from variables to DOM manipulations. Each lesson combines explanation, concrete example and small hands-on exercise.
Introduction
Understand what JavaScript is and how it applies to an HTML page.
Variables and data types
let , const , var and types: numbers, strings, booleans...
Operators
Arithmetic, comparison and logical operators.
Conditions
if, else, else if and the ternary operator for making decisions.
Loops
for, while and for...of to repeat actions.
Functions
Declare, call and reuse code blocks with functions.
Arrays
Create, traverse and manipulate arrays with push, map, filter...
Objects
Structure data with properties and methods.
Manipulate the DOM
querySelector, textContent, classList : modify a page in real-time.
Events
addEventListener : react to clicks, input and loading.