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

  • Object
  • Number
  • String
  • Function
In JavaScript, primitive data types include Number, String, Boolean, Null, Undefined, and Symbol. Object is not a primitive data type; it is a reference data type that can hold collections of key-value pairs or functions. Primitive data types are immutable, whereas objects are mutable.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *