JavaScript Number.MAX_VALUE

If you ask me, what is the largest possible number can be displayed in JavaScript? I probably can’t answer.

But I can tell you that you can get the largest number can be displayed in JavaScript with Number.MAX_VALUE.

The Number.MAX_VALUE is static property of the Number object with a value of 1.7976931348623157e+308.

What Happened if exceed the MAX_VALUE

When the number is more than the MAX_VALUE or 1.7976931348623157e+308. It will return Infinity.

1.7976931348623157e+308 + 1; // Infinity

Browser Support