JavaScript Number.MAX_VALUE

The MAX_VALUE property has a value of approximately 1.79E+308 or 21024. Values larger than MAX_VALUE are represented as Infinity.

It is a non-writable, non-enumerable, and non-configurable property.

The syntax to access the MAX_VALUE constant is:


MAX_VALUE is accessed using the Number class name.

Example: Using Number.MAX_VALUE

value = Number.MAX_VALUE;
console.log(value); // 1.7976931348623157e+308



Recommended Reading:

Did you find this article helpful?