Variables (continued)

The meaning of word "variable" is "to vary", "to change".
You can update a variable by assigning it a new value:

  • add a variable x with value 5
  • output x
  • add an x = 19 block, with variable name x and value 19
  • output x

You should see 2 numbers printed:

  • 5 - first value of x
  • 19 - newly assigned value of x

You can assign complex expressions (calculations), which can include variables too!