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:

Number.MAX_VALUE

MAX_VALUE is accessed using the Number class name.


Example: Using Number.MAX_VALUE

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

Output

1.7976931348623157e+308

Recommended Reading:

Did you find this article helpful?

Your path to become a builder.

Builders don’t just know how to code, they create solutions that matter. Escape tutorial hell and ship real projects.

Try Programiz PRO
  • Real-World Projects
  • On-Demand Learning
  • AI Mentor
  • Builder Community