MCQ Single Best Answer Easy

QWhich of the following is not a primitive data type in JavaScript?

ID: #4879 Javascript Data Types MCQ 298 views
Question Info
#4879Q ID
EasyDifficulty
Javascript Data Types MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A String
  • B Array
  • C Boolean
  • D Number
Correct Answer: Option B

Explanation

In JavaScript, the primitive data types are String, Boolean, Number, Null, and Undefined.
An array is not a primitive data type, but is instead an object.

No Previous Next Question

Share This Question

Challenge a friend or share with your study group.