⚡ 0 XP
Step 1 of 1
Level 17 · The steps box
A variable is a labelled box that holds a number. Dabbu reads the box whenever a block uses it.
Change the number in one place and every block that reads it changes too.
🎯 Challenge: Level 17 · The steps box +25 XP
Meet a variable called “steps”. Set it to 5, then “move steps squares” — twice, with a turn in between.
Try twice to unlock the solution (0/2)
See the code · JavaScript
// Drag blocks under “when Run is pressed”
Lesson notes (text version)
1. Level 17 · The steps box
A variable is a labelled box that holds a number. Dabbu reads the box whenever a block uses it.
Change the number in one place and every block that reads it changes too.
Challenge: Level 17 · The steps box
Meet a variable called “steps”. Set it to 5, then “move steps squares” — twice, with a turn in between.