Variables in programs
Create and use variables in visual programs to store and change values — such as a score, a timer, a counter or a user's answer — and use them in conditions
Share
Activity
A variable keeps a value that can change while the program runs.
Materials
- Variable jar labeled score
- Number chips 0–5
- Event cards: +1 point / reset / show score
- Paper
Steps
- Adult starts score at 0, adds +1 twice, and shows the jar value.
- Child runs three event cards in order and updates the jar each time.
- Child predicts the jar after a new order before moving chips.
- Fresh check: adult hides the jar; child recalls the last value and what changed it. Record and stop.
Done
Ask what a variable stores. Success: a changeable named value.
Example. “Score starts 0, +1, +1 → 2.”
2 before 0 after
List nearby topics
This concept
Next
No next concept
Ways to teach
Pick a way to teach this topic. Come back here afterward to record progress.
BBC Bitesize
Variables
About this link
Variables supports Variables in programs. An adult picks one article or section; this is a learning page, not a scored quiz.
BBC Bitesize. “Variables.” External page; Gakuva does not copy, host, embed, or redistribute materials.
Unknown — link only
Check understanding and curriculum record
Family records and proof options
Keep a record of your learning
Save photos, notes, and attendance. Export a proof packet for compliance or portfolio reviews.
Check understanding
“In a game your child made with block coding, can they make a score that goes up each time the player wins a point, and end the game when the lives run out?”
Full curriculum checks
- Create a 'score' variable in a game that starts at 0 and increases by 1 each time the player catches an object
- Store a user's typed name in a variable and use it in a message (e.g. 'Hello Sam!')
- Use a variable in a condition (e.g. 'if lives = 0 then game over') and explain what the variable holds at each stage
Curriculum record
- Type
- Procedural
- Subject
- Computing
- Domain
- Algorithms & Programming
- Age range
- Ages 10–13
Standards