FunctionsAges 9–144 levels

Code the Rocket

Teach the rocket a new trick, give it a name, and use it again and again.

How to play

Goal: Define routine A, then call it to fly the rocket to the space station.

Controls: Tap a block to add it at the gold marker. Tap between blocks to move the marker. Press Run to watch your program.

What you'll learn: A function is a named group of instructions. You define it once and call it whenever you need it, which keeps programs short and tidy.