Once you assign a value of some type to a variable, you can later reassign the variable to host a value of any other type, without any issue.
Primitive types are:
And two special types:
Any value that’s not of a primitive type (a string, a number, a boolean, null, or undefined) is an object.
We’ll talk more about objects later on.
The main difference I mention now about primitive types and objects is that objects are passed by reference, while primitive types are passed by value. This is a concept that will be useful when we’ll introduce functions.