JavaScript tutorial

Make pages respond: store values, make decisions, react to clicks.

Start lesson 1: What is JavaScript?

10 lessons

  1. What is JavaScript?(completed)

    JavaScript makes web pages respond to people. Run your first script and print to the console.

    Practice: 3 exercises and 3-question quiz

  2. Variables(completed)

    Store values with let and const, and learn the basic types of value JavaScript works with.

    Practice: 3 exercises and 4-question quiz

  3. Operators(completed)

    Do math, join text, compare values and combine true-or-false checks.

    Practice: 3 exercises and 3-question quiz

  4. Conditions(completed)

    Run different code depending on a condition with if, else if and else.

    Practice: 3 exercises and 3-question quiz

  5. Loops(completed)

    Repeat code with for, for...of and while, without copying it over and over.

    Practice: 3 exercises and 3-question quiz

  6. Functions(completed)

    Package code you want to reuse into functions with parameters and return values.

    Practice: 3 exercises and 3-question quiz

  7. Arrays(completed)

    Work with lists of values: add and remove items, search them, and transform them with map and filter.

    Practice: 3 exercises and 3-question quiz

  8. Objects(completed)

    Group related values under names, and store lists of records as arrays of objects.

    Practice: 3 exercises and 3-question quiz

  9. The DOM(completed)

    Find elements on the page and change their text, styles and classes from JavaScript.

    Practice: 3 exercises and 3-question quiz

  10. Events and a to-do app(completed)

    Run code when people click, type and submit forms, then put it all together in a small to-do app.

    Practice: 3 exercises and 3-question quiz