JavaScript MAX_VALUE property
Examples
Returns Javascript Maximum number:
Number.MAX_VALUE;
return value:
1.7976931348623157e+308
try it"
Since MAX_VALUE the Number object's properties, you can use Number.MAX_VALUE call.
Use x Number objects you create yourself (x.MAX_VALUE) will not be available.
Definition and Usage
MAX_VALUE property is the largest number that can be represented in JavaScript.
Its approximate value of 1.7976931348623157 x 10 308.
Note: The number is larger than MAX_VALUE represents infinity.
Use Number.MAX_VALUE
MAX_VALUE is a static property Javascript Number object, only through Number.MAX_VALUE calls. .
Using a custom Number x (x.MAX_VALUE) will not get MAX_VALUE properties:
Browser Support
All major browsers support MAX_VALUE property.
grammar
Number.MAX_VALUE
technical details
return value: | The maximum value, 1.7976931348623157e + 308 |
---|---|
JavaScript version: | 1.1 |