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 It 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