What does `Number.MAX_VALUE` represent?
A
The maximum integer in JavaScript
B
The largest positive number JavaScript can represent
Analysis & Theory
`Number.MAX_VALUE` is the largest positive numeric value representable in JavaScript.
What is the value of `Number.MIN_VALUE`?
B
The smallest positive number (closest to 0, not negative)
C
The most negative number
Analysis & Theory
`Number.MIN_VALUE` is the smallest positive number greater than 0.
What is `Number.NaN` used for?
B
To check for null values
C
To represent a value that's Not-a-Number
Analysis & Theory
`Number.NaN` represents an invalid number result — Not-a-Number.
What does `Number.POSITIVE_INFINITY` return?
Analysis & Theory
`Number.POSITIVE_INFINITY` is returned when a number exceeds the maximum limit.
What does `Number.NEGATIVE_INFINITY` return?
Analysis & Theory
`Number.NEGATIVE_INFINITY` represents a number too small to be represented (very negative).
Which of the following is NOT a static number property?
B
Number.MAX_SAFE_INTEGER
Analysis & Theory
`Number.isInteger` is a method, not a property.
What is `Number.EPSILON`?
A
The smallest possible value in JavaScript
B
A very small number used for precision comparisons
D
The same as `Number.MIN_VALUE`
Analysis & Theory
`Number.EPSILON` represents the difference between 1 and the smallest number greater than 1.
What is the use of `Number.MAX_SAFE_INTEGER`?
A
It gives the max index for arrays
B
It represents the largest reliable integer (without rounding errors)
C
It shows the number of safe digits
Analysis & Theory
`MAX_SAFE_INTEGER` is `2^53 - 1`, beyond which integers may lose precision.
What is `Number.MIN_SAFE_INTEGER`?
Analysis & Theory
`MIN_SAFE_INTEGER` is the lowest reliable integer value JavaScript can handle accurately.
Which of these values is equivalent to `Number.NaN`?
Analysis & Theory
`NaN` is a global value but also accessible through `Number.NaN`.