Watch the video to understand the tasks
When we give a variable a name such as 'age' it is like putting a label on the storage jar. Giving a variable a name allows the computer to find where our information is stored.
VARIABLE LEARNING GOALS: I understand what a variable is.
I can create code that uses a variable correctly
Some pieces of information have values that vary or change during the running of a program. Programmers create variables to hold the value of information that may change. In a game program, a variable may be created to hold the player’s current score, since that value would change (hopefully!) during the course of the game.
You can think of VARIABLES as containers that hold different values.
Different types of variables:
A number variable holds numerical data.
A string variable holds a string of characters or text.
A boolean variable has only two possible values: true or false.
In MakeCode, a Position variable is a special kind of variable that holds three numbers that describe a specific location in three-dimensional space. We call these numbers X, Y, and Z coordinates.
TRY THE ONLINE ACTIVITIES BELOW