• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Dealing with Data and Variables > Primitive and Compound Data

Primitive and Compound Data

Data types are divided into two basic categories, primitive and compound. Boolean values, numbers, strings, and the null and undefined values all constitute primitive data types. As you have seen, different data types are handled differently.

Compound data types are made up of more than one component. Two primitive data types, such as 10 multiplied by 7, can make up compound data. Compound data can have components made up of other compound data, made up of other compound data, ad infinitum. Compound data can mix and match different data types as well.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint