JavaScript Number.MAX_VALUE Property
Number.MAX_VALUE is the largest number JavaScript can represent. Anything larger becomes Infinity.
Description
The Number.MAX_VALUE static property is the largest positive number that can be represented, about 1.8 × 10308. Larger results overflow to Infinity. Note that integers this large aren't exact; for exact integers, see Number.MAX_SAFE_INTEGER. Number.MIN_VALUE is the smallest positive number, about 5 × 10-324.
Values beyond Number.MAX_VALUE become Infinity, which you can detect with Number.isFinite(). In practice it's rarely reached in everyday code; it matters in scientific calculations, and when choosing a starting value for a search where Infinity would also work.
Like the other Number constants, it's a static, read-only property. Its negative, -Number.MAX_VALUE, is the most negative finite number, since Number.MIN_VALUE is the smallest positive number, not the most negative one.
Syntax
Number.MAX_VALUEValue
About 1.79 × 10308.
Example
Browser Support
The following information will show you the current browser support for the Number.MAX_VALUE property. Hover over a browser icon to see the version that first introduced support for this property.
Desktop





Tablets & Mobile





