In JavaScript there are 5 different data types that can contain values:
stringnumberbooleanobjectfunction
There are 6 types of objects:
ObjectDateArrayStringNumberBoolean
And 2 data types that cannot contain values:
nullundefined
JavaScript typeof
==============
typeof “John” // Returns “string”
typeof 3.14 // Returns “number”
typeof NaN // Returns “number”
typeof false // Returns “boolean”