Question:medium

Which of the following is not a JavaScript data type?

Show Hint

A key feature of JavaScript's type system to remember is that there is only one `Number` type for all kinds of numbers. You don't need to distinguish between integers, floats, doubles, etc. as you do in languages like C++ or Java.
Updated On: Jul 2, 2026
  • String
  • Boolean
  • Float
  • Object
Show Solution

The Correct Option is C

Solution and Explanation

Step 1: List out JavaScript's actual primitive types.
JavaScript recognizes String, Number, BigInt, Boolean, Undefined, Null, and Symbol as its primitive types, along with the non-primitive Object type for more complex data.
Step 2: Notice how JavaScript handles numbers differently from many other languages.
Unlike languages such as C++ or Java that split numbers into separate int, float, and double types, JavaScript lumps every number, whether whole or decimal, into a single type simply called Number.
Step 3: Match this understanding against the options.
String, Boolean, and Object are all genuine JavaScript types, but Float has never existed as a distinct type name in JavaScript because that role is already fully covered by Number.
\[ \boxed{\text{Float}} \]
Was this answer helpful?
0