Number.MAX_VALUE
returns the largest number possible in JavaScript.
Number.MAX_VALUE
has the value of 1.7976931348623157e+308.
Numbers larger than MAX_VALUE are represented as Infinity.
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:
Number.MAX_VALUE
Type | Description |
Number | 1.7976931348623157e+308 |
Number.MAX_VALUE
is an ECMAScript1 (ES1) feature.
ES1 (JavaScript 1997) is fully supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!