正解:D
JavaScript has one numeric data type for all real numbers, whether integers or decimals.
This type is simply called:
Number
It follows the IEEE 754 double-precision floating-point standard internally, but JavaScript does not expose separate types like float, double, or decimal.
Therefore:
* It is not Float # JavaScript does not have float primitives.
* It is not Double # this refers to the underlying IEEE 754 representation, but JavaScript ' s type is still just "Number."
* It is not Decimal # JavaScript has no built-in decimal type.
* The correct answer is Number .
JavaScript Knowledge References (text-only)
* JavaScript has a single numeric type: Number.
* All numbers-integers, fractions, floating point-use the Number type.