A free, interactive JavaScript tutorial for teens
· version v23
Nine short JavaScript lessons for teens that run right in the browser: write real code, press Run and get instant feedback. Free, no sign-up.
Many teens want to try JavaScript before they commit to a whole course. So we built a free JavaScript tutorial for teens that anyone can open, no account needed.
Learn by doing
Each lesson has a short explanation, an example and a challenge. Teens edit the code, press ▶ Run and see the result in a live page preview and the console. Automatic checks show what works (✓) and what is still missing (✗). Stuck? There is a hint, and if needed the full solution.
What the nine lessons cover
- the console and your first line of code,
- variables and template strings,
- numbers and math,
- changing a web page (the DOM),
- reacting to a click,
- decisions with if / else,
- for loops,
- your own functions,
- and a final project: a small clicker game.
Progress is saved in the browser, so teens can come back later and pick up where they left off. When they are done, they can continue with the full JavaScript & the Web course.
New: guides
We also started a guides section for teens, parents and teachers. The first three: JavaScript vs Python for teens, 12 JavaScript projects for teens and how to teach JavaScript to teens.
Try HexoQuest
The first 3 levels are free. Teachers and parents get a 30-day free trial.