Join Digital Nomads and Remote Workers to Ask Questions, Share Experiences, Find Remote Jobs and Seek Recommendations.

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

BrowserChromeEdgeMozillaSafariOpera
Number.MAX_VALUEYesYesYesYesYes

We Work From Anywhere

Find Remote Jobs, Ask Questions, Connect With Digital Nomads, and Live Your Best Location-Independent Life.