Loading subject…
Variable
A named store in a program that holds a value which can change while the program runs.
| Data type | Example value | Typical use in a design project |
|---|---|---|
| Integer | 7 | Counting button presses |
| Float | 21.5 | Temperature or voltage readings |
| String | "PE kit" | Labels and on screen messages |
| Boolean | True | Is the door open |