JS Built-ins
NumberMAX_VALUEintermediate

Number.MAX_VALUE β€” overflow to Infinity

πŸ“– 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.

Overflow to Infinity

Multiplying Number.MAX_VALUE by any number greater than 1 results in Infinity.

πŸ’‘ Hints (1)
  • β€’ Exceeding `MAX_VALUE` through multiplication overflows to `Infinity`.