Javascript Built-in Types
JavaScript defines seven built-in types:
null
undefined
boolean
number
string
object
symbol -- added in ES6!
Note: All of these types except object are called "primitives".
The typeof operator inspects the type of the given value, and always returns one of seven string values -- surprisingly, there's not an exact 1-to-1 match with the seven built-in types we just listed.