JavaScript MAX_VALUEProperty
Example
Return the largest number in JavaScript:
Number.MAX_VALUE;
Return value:
1.7976931348623157e+308
Try it Yourself »
Since MAX_VALUE is a property of the Number object, it can be called using Number.MAX_VALUE.
It cannot be obtained using a self-created x Number object (x.MAX_VALUE).
Definition and Usage
The MAX_VALUE property is the largest number representable in JavaScript.
Its approximate value is 1.7976931348623157 x 10308。
Note:Numbers greater than MAX_VALUE are represented as infinity.
Use Number.MAX_VALUE
MAX_VALUE is a static property of the JavaScript Number object and can only be called via Number.MAX_VALUE.
Using a custom Number x (x.MAX_VALUE) will not be able to get the MAX_VALUE property:
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the MAX_VALUE property.
Syntax
Number.MAX_VALUE
Technical Details
| Return value: | Maximum value, 1.7976931348623157e+308 |
|---|---|
| JavaScript version: | 1.1 |
Other Extensions
JavaScript Number Object