JavaScript has dynamic types. This means that the same variable can be used as different types:
var x; (The variable x is undefined)
var x = 5; (Now, the variable x is defined as a number)
var x = quot;John"; (Now the variable x is redefined as a string)