JavaScript/Notes/TypeConversion

From Noisebridge
Revision as of 20:55, 5 January 2014 by Garrett (talk | contribs) (Created page with "There are 5 primitive types, which are associated with the various primitive values. Null: The value null. Undefined: The value undefined. Number: All numbers, su...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 "".