Overview


Without variables are programs wouldn't be very interesting. We would have an employee program with only one employee, a game with one game element that moves in only one direction, etc.

Variables are so important to coding, that we might think of coding and computers as algebra variable machines.

Let's explore examples.

We are not using variables here, so every ball is the same.
We are yes using variables here, so our balls can vary (radius, color etc).
We are not using variables here, so every person is the same. There is no variation.
😀
Bob
😀
Bob
😀
Bob
😀
Bob
😀
Bob
😀
Bob
😀
Bob
😀
Bob
😀
Bob
😀
Bob
😀
Bob
😀
Bob
We are yes using variables here, so our persons can vary (name etc).
😊
Yang
😇
Sally
😔
Kofi
🙂
Jiao
🤭
Yawo
😀
Bob
😁
Mary
😃
Khawla
🤫
Zada