Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Primitive Data Types

Primitive Data Types

John Nunemaker

September 03, 2009
Tweet

More Decks by John Nunemaker

Other Decks in Programming

Transcript

  1. undefined any variable that has not been assigned a value

    and any property of an object that does not exist Thursday, September 3, 2009
  2. number • values that can be processed and calculated •

    can be positive or negative • represented internally as a double, accurate to 14 or 15 digits Thursday, September 3, 2009
  3. string • sequence of characters enclosed with quotation marks •

    can use single or double quotes • cannot use quotes of the same type inside the same type unless they are escaped http://www.w3schools.com/jS/js_obj_string.asp Thursday, September 3, 2009
  4. everything is zero indexed j a v a s c

    r i p t 0 1 2 3 4 5 6 7 8 9 Thursday, September 3, 2009
  5. string escaping cannot use quotes of the same type inside

    the same type unless they are escaped Thursday, September 3, 2009