Gnoseed
Programming · Flashcard

Which of the following is a primitive data type in JavaScript?

Why this is the answer

Boolean is a primitive — an immutable value, not an object. Arrays, objects, and functions are all objects (reference types), so none of them is a primitive.

Read more in the docs
Study in Gnoseed →