Web developmentBeginner

JavaScript Basics

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.

10 lessons
Start the course

Course content

  1. 1

    Introduction

    Understand what JavaScript is and how it applies to an HTML page.

  2. 2

    Variables and data types

    let , const , var and types: numbers, strings, booleans...

  3. 3

    Operators

    Arithmetic, comparison and logical operators.

  4. 4

    Conditions

    if, else, else if and the ternary operator for making decisions.

  5. 5

    Loops

    for, while and for...of to repeat actions.

  6. 6

    Functions

    Declare, call and reuse code blocks with functions.

  7. 7

    Arrays

    Create, traverse and manipulate arrays with push, map, filter...

  8. 8

    Objects

    Structure data with properties and methods.

  9. 9

    Manipulate the DOM

    querySelector, textContent, classList : modify a page in real-time.

  10. 10

    Events

    addEventListener : react to clicks, input and loading.