Question:

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
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

JavaScript has a set of primitive data types and a complex type (Object). The primitive types are:
1. String: Represents textual data (e.g., "hello"). 2. Number: Represents both integer and floating-point numbers. There is no separate `int` or `float` type. (e.g., 42, 3.14). 3. BigInt: Represents integers with arbitrary precision. 4. Boolean: Represents logical entities, can have two values: `true` and `false`. 5. Undefined: A variable that has been declared but not assigned a value has the type `undefined`. 6. Null: Represents the intentional absence of any object value. 7. Symbol: A unique and immutable primitive value.
In addition to these, Object is a complex data type.
Let's analyze the options:
(A) String, (B) Boolean, and (D) Object are all valid data types in JavaScript.
(C) Float: JavaScript does not have a separate data type called `Float`. All numbers, whether integers or decimals, are of the `Number` type.
Therefore, Float is not a JavaScript data type.
Was this answer helpful?
0
0