JavaScript Primitives

Learn JavaScript Primitives

🕓 Last updated today

Knowledge Check

Take this customized & interactive quiz to test your knowledge on JavaScript Primitives, then check out the learning resources below.

Question 1 of 7

Which of the following is true about JavaScript primitives?

Core Learning

The fastest way to learn JavaScript Primitives is simply to study these exact resources. Focus on the 👀 to learn extra quickly and save time!

What is a primitive?
Data type: string

👀 1 Thing to Focus On

  • Data type string is different than String, the object wrapper for the value.

Data type: boolean

👀 1 Thing to Focus On

  • boolean data type is different than Boolean, the object wrapper for the value.

Data type: BigInt

👀 1 Thing to Focus On

  • How does BigInt differ from Number?

Data type: Number

👀 2 Things to Focus On

  • The content link here refers to the primitive wrapper object, which comes with a set of methods to manipulate numbers and number like values. This is good to know, but it's important to note the different between Number as a data type and Number as an object.
  • Using Number as a function is different that using Number as a constructor

Data type: Symbol

👀 1 Thing to Focus On

  • Symbols are not the same as strings!

Undefined vs null

👀 1 Thing to Focus On

  • Undefined means to specify the absence of a value, whereas null is meant to intentionally specify "nothing" as value.