For example, in the following program, a variable named greeting is declared and is initialized to a text string. But, on the next line, the greeting variable is assigned to an integer value of 10. A new variable named product is then initialized to the value of the greeting variable multiplied by itself.
var greeting = 'Hello World';
greeting = 10;
var product = greeting * greeting;