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?

Our premium learning platform, created with over a decade of experience and thousands of feedbacks.

Learn and improve your coding skills like never before.

Try Programiz PRO
  • Interactive Courses
  • Certificates
  • AI Help
  • 2000+ Challenges