JS Built-ins
NumberMAX_VALUEbeginner

Number.MAX_VALUE β€” isFinite check

πŸ“– Usage Example
// Largest finite positive number
Number.MAX_VALUE        // β†’ 1.7976931348623157e+308
Number.MAX_VALUE * 2    // β†’ Infinity

Use Number.MAX_VALUE to check against the largest representable floating-point value before performing operations that could overflow to Infinity.

isFinite Check on MAX_VALUE

Number.MAX_VALUE is finite even though it is enormous.

πŸ’‘ Hints (1)
  • β€’ `MAX_VALUE` is finite β€” only `Infinity`, `-Infinity`, and `NaN` fail `isFinite`.