‹
EXPLORE · LISTEN · DISCOVER

A Variable Remembers a Changing Value

Technology · ProgrammingVISUAL DISCOVERY 95 OF 1,100

A Variable Remembers a Changing Value

Starter · about 6 minutes · a little curiosity goes a long way

Lesson details
Browse all adventures
For grown-ups
Today’s little discovery

A variable names stored data. The assignment x ← x + Δ reads the old value, adds Δ, and stores the result back in x.

Ask “what changed first?” and “what changed because of it?” Let the child use the arrows and readout as evidence.

This is a learning model. Try the take-home activity together.
Voice settings

Using Heart (en-US).

Saved voices download ahead of play for this activity. No lesson text is sent to a speech service.The sample plays once and does not change the Sound on/off setting.
Your adventure steps
  1. Wonder
  2. Guess
  3. Try it
  4. Discover
  5. Celebrate
01 / 05
3???update 0/3: x ← x + 2
A little wonder
HERE’S A LITTLE WONDER…

What does an assignment update?

A game score starts at one value and gains points each round.

No rush. Try an idea and see.
Try it

Open Lesson to read the question, choose your idea, and continue.