Using variable

In programming we use variables all the time. We have already used variables before.

In the above case name is a variable. We are assigning the value of John Smith to the variable name. intro is also a variable to which a value is being assigned.

Variable can be re-used and the values can be reassigned.

In the above case we are using the same variable name but we changed its value three times.