JavaScript Number MAX_VALUE
Description
Number.MAX_VALUE
returns the largest number possible in JavaScript.
Number.MAX_VALUE
has the value of 1.7976931348623157e+308.
Note
Numbers larger than MAX_VALUE are represented as Infinity.
See Also:
Number.MAX_VALUE
MAX_VALUE is a property of the JavaScript Number object.
You can only use it as Number.MAX_VALUE
.
Using x.MAX_VALUE, where x is a variable, will return undefined:
Syntax
Number.MAX_VALUE
Return Value
Type | Description |
Number | 1.7976931348623157e+308 |
Browser Support
Number.MAX_VALUE
is an ECMAScript1 (JavaScriopt 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |