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 docsMore JavaScript Fundamentals flashcards
- Which keyword declares a variable whose binding cannot be reassigned?
- What is the difference between == and ===?
- What is the main syntactic feature of an arrow function?
- What does a closure keep access to after its outer function has returned?
- Which runs first: Promise.resolve().then(f) or setTimeout(f, 0)?
