Example in Action: JavaScript Data Types

We'll work with some of the primitive and object data types in this course. 

There are seven primitive types: 

  • string
  • number 
  • bigint 
  • Boolean
  • undefined
  • symbol
  • null 

Watch this video to see how to define them in JavaScript programs. You'll use the "typeof" operator to check each type. After watching the video, consider these questions: 

  • What is an "undefined" type, and how does it differ from a "null" type?
  • What primitive types are returned by the "typeof" operator?


Source: Code Synergy, https://www.youtube.com/watch?v=JGpw6STe6uc
Creative Commons License This work is licensed under a Creative Commons Attribution 3.0 License.

Last modified: Thursday, August 25, 2022, 11:08 AM