JavaScript Number MAX_VALUE

Example

let x = Number.MAX_VALUE;
Try it Yourself »

Description

Number.MAX_VALUE returns the largest number possible in JavaScript.

Number.MAX_VALUE has the value of 1.7976931348623157e+308.


Number.MAX_VALUE

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:

Example

let x = 100;
x.MAX_VALUE;
Try it Yourself »

Syntax

Number.MAX_VALUE

Return Value

Type Description
Number1.7976931348623157e+308

Browser Support

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

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.