Free to Learn WebAssembly sandbox Full course

Studio · Shorts Parts 1–5

Five checks that keep website code in its box

Predict what each rule does, then run it.

Part 1 · check once before it runs

1. Inspect Before Run

A website sends your browser a list of steps. A tray holds numbers: steps put them on top or take them off the top. add top two takes two off and puts back their total. This rule runs each step, then checks it. The fixed rule instead reads every step first without running it, using a pretend tray tracking how many numbers sit on top; each [ number ] tile stands for one.

Predict before you run it

Step 3 needs two numbers, but the tray holds one. What has already happened when that is found?

Your predictions

Saved in this browser. First predictions and revisions are kept apart.