JavaScript tutorial
Make pages respond: store values, make decisions, react to clicks.
10 lessons
- 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
- 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
- Operators(completed)
Do math, join text, compare values and combine true-or-false checks.
Practice: 3 exercises and 3-question quiz
- Conditions(completed)
Run different code depending on a condition with if, else if and else.
Practice: 3 exercises and 3-question quiz
- Loops(completed)
Repeat code with for, for...of and while, without copying it over and over.
Practice: 3 exercises and 3-question quiz
- Functions(completed)
Package code you want to reuse into functions with parameters and return values.
Practice: 3 exercises and 3-question quiz
- 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
- Objects(completed)
Group related values under names, and store lists of records as arrays of objects.
Practice: 3 exercises and 3-question quiz
- The DOM(completed)
Find elements on the page and change their text, styles and classes from JavaScript.
Practice: 3 exercises and 3-question quiz
- 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