Skip to content

A box with a name

  • A variable is a named box that holds a value.
  • You put a value in the box, then use the name later.
  • The value can be a number or a string.

Three variables as labelled boxes: city holds "Paris", age holds 14, count holds 2

Handout

Log in or create account

IGCSE, A-Level & AP