The answer
No. Arrays are objects and therefore non-primitive.
No. Arrays are objects and therefore non-primitive.
JavaScript has seven primitive data types: String, Number, Boolean, Undefined, Null, BigInt, and Symbol.
undefined typically means a value has not been assigned, while null represents an intentional absence of value.
Yes. Functions are special types of objects in JavaScript.
Browse all our FAQs or reach out to our support team
Your learning library
Find your next course. Build something great.