Number.MAX_VALUE

The largest positive finite value representable as a JavaScript number.

Since ES1 Spec ↗

Syntax

Number.MAX_VALUE

Returns

number — Approximately 1.7976931348623157e+308.

Examples

console.log(Number.MAX_VALUE);
Output
1.7976931348623157e+308
console.log(Number.MAX_VALUE * 2);
Output
Infinity

Notes

Values larger than this overflow to Infinity. This is the largest magnitude of a double-precision float, not the largest safe integer (see MAX_SAFE_INTEGER).

Browser & runtime support

EnvironmentSince version
chrome 1.0
firefox 1.0
safari 1.0
edge 12
node 0.10

See also