DiscoveryVIPAll guides ↗

LEARN JAVASCRIPT • ONE SMALL VICTORY AT A TIME

A little code.
A big adventure.

Help Pip bring the island lighthouse back to life. Learn JavaScript by solving puzzles, charging beacons, and building your confidence.

Start your adventure ↓

15 missions · No account · No lives lost · Real JavaScript

✦   ·   ✦   ·
●   ●
PIP & THE LIGHTHOUSE

Never written code? You belong here.

Each mission gives you a tiny lesson and a starting function. Edit the code between { }, then choose Test my code. The game calls solve(input) with three different inputs. Your return value is the answer. You can use hints or inspect a worked solution at any time.

EXPLORER

0 / 15 beacons lit

0 XP

Pip’s coding tip

Your mission

See the three examples

Ready when you are. Try the first mission!

Ctrl/⌘ + Enter tests your code. Passing checks compare answers, not which syntax you use. Code runs in an isolated worker with external requests blocked and a three-second limit.

Your coding backpack

String
Text in quotes: "Pip".
Number
A numeric value: 5.
Boolean
true or false.
Variable
A name for a value: const energy = 5;
Function
A reusable set of instructions. Inputs arrive through parameters; return sends a result back.
Array / object
An ordered list [1, 2] / named properties {name: "Pip"}.
Download the adventure handbook ↓

Keep your discoveries

Drafts, completed missions and notes save in this browser. Each mission earns 100 XP once; retries and hints cost nothing. Replaying does not remove a previously earned beacon. A completion record celebrates practice, not professional certification.

Continue learning with MDN