JavaScript Number MAX_VALUE property

Definition and usage

Number.MAX_VALUE returns the largest possible number in JavaScript.

MAX_VALUE The property is the largest number that can be represented in JavaScript. Its approximate value is 1.7976931348623157 x 10308(1.79E+308).

Note:greater than MAX_VALUE is represented as Infinity.

example

let x = Number.MAX_VALUE;

try it yourself

Number.MAX_VALUE

MAX_VALUE is a property of the JavaScript Number object.

You can only use it as Number.MAX_VALUE.

If you use x.MAX_VALUE, where x is a variable, it will return undefined:

example

let x = 100;
x.MAX_VALUE;

try it yourself

syntax

Number.MAX_VALUE

return value

type description
number 1.7976931348623157e+308

browser support

Number.MAX_VALUE is a feature of ECMAScript1 (ES1).

All browsers fully support ES1 (JavaScript 1997):

Chrome IE Edge Firefox Safari Opera
Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support