Codele / How computers think
Boxes with names
A computer remembers things by putting them in boxes with names on the front. Watch a game remember a score and a player.
- A computer remembers things in boxes. Each box has a name on the front.
- A named box is called a variable. Its name stays; what is inside can change.
- Putting a new thing in a box throws the old thing away.
- The = sign means “put this in the box”. It does not mean “is equal to”.
- Pick names that tell the truth, like score or player, so people can read your code.
Loading the playable lesson…