Math · Foundational · Lesson 7 of 9
Boxes with Names
Variables and assignment
An interactive lesson with 6 steps, about 5 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- A variable is a named box; “x = …” puts a value in it.
- The right side is worked out first, using current values.
- Assigning copies a value; overwriting destroys the old one.
Steps
- Variables
- A copy, not a link
- Swapping two boxes
- Work backwards
- Squaring again and again
- A swap without a spare box