If you haven’t already completed Unit 2.1, we recommend you do that part before starting Unit 2.2.
Computers like the Cliq Robot’s brain have memory to store and read and update information.
Memory is where a program stores any kind of information about itself, what it’s doing, or what’s happening out in the world.
We give each piece of information a name to know which piece of information we’re reading from or changing.
These are called Variables; because we might change (vary) the information stored there later on.
Q: Wait! Didn’t you say there were only four block types?
A: Yes – a Variable is a special type of Expression, and can be used in all the same places you use a number or maths equation.
In this unit, we’ll write some programs that need to use variables.