Students are able to understand the use of variables in programming.
Students are able to learn how to program variables.
Variables are temporary storage spaces for numbers, text, and objects.
For example, scores in a game, number counters, and others.
An example of a “score” variable that stores and records score changes when the game is in progress.
Variables are like files in a computer. They can remember all the interactions of the internal system with the outside world.
Materials needed to follow this video:
micro:bit + USB wire
Computer
Visit makecode.microbit.org
Transcript
Ways to build code.
End product.
Display the number of counts when the turtle is shaken.
Return the value of the count variable to 0 when one of the buttons is pressed.
👉CLICK HERE👈 to try it on makecode.
Click "Variables" > "Make a Variable" > Name your variable