Data Types

  • Data types built into or "there by default" or "stuff already in the JS universe"...

  • Ask: Why are data types necessary?

  • JavaScript doesn't allow creating true new data types, but is extend via OBJECTS

Built in Data Types

  • Number (integers, floats, NaN, Infinity)

  • String (text in quotes)

  • Boolean (true/false)

  • Undefined (declared but unassigned)

  • Null (intentional absence of value)

  • Symbol (unique identifiers)

  • BigInt (large integers)

  • Object (collections of properties)

  • Array (ordered collections)

  • Function (callable objects)

  • Date

References

Last updated