New course: JavaScript for teens, build your first browser game
· version v6
Teens aged 15–17 bring web pages to life with JavaScript: buttons, events, dark mode, a to-do list and a guess-the-number game they can download.
JavaScript runs on every website you visit. It is the language that makes buttons react, menus open and games run in the browser. The new JavaScript & the Web course shows teens how it works, step by step, with a live preview of their page.
From blocks to code
In the first five levels, teens snap blocks together and see the real JavaScript next to them. In the last five, they write the code themselves in a proper editor. Every change shows up instantly in the page preview and the console.
What teens build
- their first message in the console
- a page whose heading and colors change with code (the DOM)
- a button that reacts to a click
- a click counter that remembers its value in a variable
- a movie ticket checker that reads an age from a field and makes a decision
- a broken greeter they debug line by line
- a dark mode switch with
classList - a working to-do list that creates new elements
- a times table generated by a
forloop - a guess-the-number game with a function they can test on its own
Safe by design
Student code runs in an isolated sandbox inside the page. It cannot reach cookies, accounts or anything outside its own little web page. Automatic tests click the buttons and check the result, just like real developers test their apps.
At the end, teens download their game as an HTML file and can open it on any computer. As always, the first three levels are free, and the course takes about three lessons.
Try HexoQuest
The first 3 levels are free. Teachers and parents get a 30-day free trial.