Primitive Data Types
Non-primitive Data Type
var myVar = 100; myVar = true; myVar = null; myVar = undefined; myVar = "Steve"; alert(myVar); // Steve
In the above example, myVar will hold last assigned value to it that is string "Steve".
Let's learn about each data type in detail in the next section.