Changing Variables
The meaning of the word "variable" is "to vary", "to change".
You can update a variable by assigning it a new value:
- declare a variable
xwith value 5 - output
x - add an
Assignblock, with variable namexand value19(x = 19) - output
x
You should see 2 numbers printed:
- 5 - first value of
x - 19 - newly assigned value of
x