Guide / 05

JavaScript course: from zero to code reviewer

24 lessons of real JavaScript in the browser, for complete beginners, with a simulator that explains every error in plain English.

Gergasi's coding course teaches JavaScript, the language every website runs on. It starts from "what is programming?" and ends with students reading, testing and fixing other people's code. That last part matters more every year: much of the code people work with today was written by someone else, or by an AI, and the useful skill is spotting what is wrong with it.

The simulator

Everything happens on one page in the browser: an editor on the left, a live preview in the middle, and a console with an "Intern report" that turns error messages into plain English hints. Your code drives a small world: a robot finding the exit, a rocket that needs enough fuel, a security gate, a boss fight. You can see what your program does, not just read numbers in a console. Code runs in a sealed sandbox, and an infinite loop is caught and explained instead of freezing the page.

How every lesson works

  1. Fundamental: the idea, shown in the visual world first, then the syntax.
  2. Console drills: "predict, then run". Write down what the code will print, then run it and compare.
  3. Scenario: your code drives the world, in three tiers: Basic, Intermediate and Advanced.
  4. Review: read the intern's working but messy code. What does it do, and what could go wrong?
  5. Bug hunt: the intern's broken code, a different version for every student, with no hints.

The syllabus

ModuleLessons
A. Starting out1 What is programming? · 2 Values, types and variables · 3 Operators and maths · 4 Strings
B. Decisions5 Comparisons and booleans · 6 if / else · 7 Logic, switch and the ternary
C. Loops8 for loops · 9 while and nested loops
D. Functions10 Function basics · 11 Parameters, scope and arrow functions · 12 Case study: the glitched RPG boss
E. Data13 Arrays · 14 Array methods · 15 reduce, sort and chaining · 16 Objects · 17 Arrays of objects and JSON
F. The page18 HTML, CSS and the DOM · 19 Events · 20 Case study: the paywall
G. Time21 Timers, animation and async / await
H. Review craft22 Debugging like a pro · 23 Reviewing AI code · 24 Final: bug-hunt exam and project demo

From lesson 21 every student builds their own small browser game from a starter kit, and presents it in lesson 24.

A taste of lesson 2

What does console.log("5" + 5) print? Many beginners say 10. JavaScript prints 55, because one of the two is text, so + joins them instead of adding. Drills like this, where you guess first and then see the truth, are how the course builds a feel for what code really does.

Marked fairly

When you are signed in, your answers are checked on our server, which runs your code again in a fresh sandbox against the lesson's own tests with its own test values. Points are paid once per part. Logged out, you can still do every lesson in the browser as practice. In a live class the teacher pushes a lesson part, sees every student's code as they type, and can show one to the class.

Who is it for? Secondary school students and anyone starting from zero. No installation is needed, and a computer with a keyboard works best.

Open the JavaScript simulator

More guides

Learn →