Level 2 from age 11

Wizard 🪄

Your website is already standing – now let's teach it to do magic. JavaScript is the language you use to tell a page what to do when someone clicks, types, or simply arrives.

You'll add every spell to the website you built in Level 1. Don't have it yet? Start there.

Loading your progress…

  1. What is JavaScript, and your first script Meet the third language of the web and write your first script that talks to the browser console. ⏱ 20 minutes
  2. Your first spell: a button that does something The page reacts to a click for the first time. You'll learn to find an element and listen for events. ⏱ 25 minutes
  3. Variables and conditions Teach your page to remember things and make decisions. This is the heart of programming. ⏱ 30 minutes
  4. Dark mode for your website A light/dark theme switcher that the website remembers even after you close the browser. ⏱ 30 minutes
  5. Photo gallery with a viewer Clicking on a photo makes it bigger, filling the whole screen. You'll learn to work with a group of elements. ⏱ 35 minutes
  6. A quiz for your visitors Questions, answers, and scorekeeping. In miniature, you'll learn the logic behind every game. ⏱ 40 minutes
  7. A form that catches mistakes A visitor leaves you a message, and the form politely points out when something's missing. ⏱ 30 minutes
  8. Big challenge: bring your whole website to life The final mission of Level 2. All the spells at once – plus a few new ideas on top. ⏱ 60 minutes