JavaScript/Notes/TypeConversion
Jump to navigation
Jump to search
There are 5 primitive types, which are associated with the various primitive values.
Null: The value null. Undefined: The value undefined. Number: All numbers, such as 0 and 3.14. Also NaN, and Infinity. Boolean: The values true and false. String: All strings, such as "foo" and "".