JS Demo: 132 lessons, 761 code samples and one runaway neon city

A fluffy many-eyed creature sits on a giant glowing laptop between a swirling wormhole, a lava lamp and an autumn village with a cow on one side and a rainy neon city with a hover train on the other, while students with tiny glowing helpers on their shoulders work below and one cheers

JS Demo started with a modest goal: a place for students to read JavaScript lessons. Nobody planned for it to grow into a complete teaching platform. It turned into one anyway, which is what happens when every answer to "could it also..." is "yes, probably."

This is the second post in the HD3 & Curriculum project. The first one described the loop the whole curriculum runs on: lessons, then implementation, then support, then back to lessons. JS Demo is where that loop has turned the most times.

The numbers, for those who like numbers

  • 132 original lessons in 25 sections, from Syntax and Operators through Functions, Objects, Arrays and Debugging, then out into JSON, the Window API and the Web APIs.
  • 761 runnable code samples, every one of them checked by actually running it, because "trust me, this outputs 42" is not a teaching strategy.
  • 609 narrated walkthrough videos in English and Spanish, with captions that line up one sentence at a time.
  • 396 Quick Check questions for practice, and 375 scored quiz questions that grade themselves.
  • 8 visual themes, from Iron Furnace to Parchment.
  • 0 passwords a student has to remember.

That last number took a surprising amount of work to keep at zero.

Every lesson, the same shape

A big site only works if students never get lost in it. So every lesson follows the same pattern. It opens with a short reason the topic matters, then short sections each with one example and its real output. The common traps get named and fenced off in warning boxes. A Quick Check comes next, then a Try It step where students run the code, break it and fix it. Each lesson has a notes panel beside it that saves as students type, for "what clicked, what confused me, and that one line I'll need on Thursday."

The Try It editor deserves its own paragraph. It catches infinite loops after one second and points to the line, instead of freezing the browser tab and leaving the student staring at a spinning wheel. Its console prints tables, groups and timers the way Chrome's does, so the habits transfer to the real thing. If a student leaves a half-finished experiment, it's waiting for them next time.

No student left behind, again

The same principle from the curriculum runs all the way through this site. Students who miss a week can read the lesson, watch the walkthrough, check themselves, and take the quiz when they're ready. Quizzes draw 5 questions from a bank of 15, explain every answer, allow unlimited retakes, and never repeat a question until a student has seen the whole bank. There is no pass and no fail. The score is there to show what still needs work, not to sort anyone.

Each lesson also has an Ask AI panel, set up to coach instead of hand over answers. Paste in broken code and you get a hint, not a rewrite. Getting an AI to show restraint turned out to be its own small project.

The teacher's side of the desk

Behind the lessons sits everything that helps the instructor keep up with twenty-some students at once. There's a quiz dashboard with every attempt and every answer, plus a page showing who opened which lesson today. A weekly review reads each student's own JavaScript pages and compares them against the matching lesson. It gives specific notes on what to add, what to build out and what to fix.

The best testers are in the room

Here's the part worth bragging about. The students themselves keep finding where the system falls short, and they say so. When the first version of the review only checked for keywords, it was students who showed it could be fooled, and the next version reads the actual content. When a student spotted a real security gap in the class file server, they reported it instead of using it, and earned the program's first badge of honor. Others flag a confusing step, a quiz answer that could be read two ways, or a feature they wish existed.

That's exactly the habit the program is trying to build: look hard at the tools you're given, find the weak spot, and help fix it. A good share of the improvements on this site started as a student saying "this could be better." No curriculum map can schedule that, but it's the clearest sign the loop is working.

The parts that got a little out of hand

The front door of the site plays one of a growing set of animated backgrounds: a wormhole, a black hole, a lava lamp, a campfire, a synthwave valley, a circuit board that routes its own wiring. Then came an endless autumn village you can walk through, with cottages, creeks and nodding cows. Then a rain-soaked neon city with a hover rail you can actually board.

Are these strictly necessary for learning what a for loop does? No. Do they show students what the same language can do once the loop makes sense? Absolutely. Every one of them is JavaScript, and that's the pitch. There's also a set of playable game prototypes waiting to be broken down into an elective, one step at a time.

What's still in progress

The Spanish narration still needs a review by a fluent speaker. Notes still live in a single browser, which works fine until a student switches computers. The newest sections still need their videos. Every one of those items came from a student or the instructor bumping into a limit, which means the loop is doing its job. The wish list writes itself. We just keep crossing things off and watching new ones appear.

What's next

More of the same, in the best sense: more lessons, more support and more of those one-second moments when the code finally runs. Releases will land here as they ship. Bring a browser. Leave the passwords at home.

Filed underBuild LogHD3 & Curriculum