In the previous class, we created an app that will convert the age from years to hours.
VARIABLE is a
placeholder or a container that
is used to hold or
store a value.
Let us understand variables with another example
Here we have an empty bottle.
Half Filled
Filled
Bottle
Can we say that the bottle is a variable and an orange juice is the value that is changing?
Which of the following code blocks increases the score by 1?
Can you identify the variable name here?
pixels
height
arrow
Which of the following code blocks is used to set the value of a variable?