Open In App

JavaScript Number MAX_SAFE_INTEGER Property

Last Updated : 15 Jul, 2025
Comments
Improve
Suggest changes
2 Likes
Like
Report

The JavaScript Number.MAX_SAFE_INTEGER is a constant number that represents the maximum safe integer. This constant has a value of (253 - 1). Here safe refers to the ability to represent integers and to compare them.

Syntax:

Number.MAX_SAFE_INTEGER

Return Value: A constant number.

Example 1: Below example illustrates the usage of Number.MAX_SAFE_INTEGER

Output:

9007199254740991
9007199254740992
true

Example 2: Below example illustrates the usage of the constants Number.MAX_SAFE_INTEGER using Math.pow() function.

Output:

9007199254740991
-9007199254740991
false

Supported Browsers:

  • Chrome 34 and above
  • Internet Explorer (Not Supported)
  • Firefox 31 and above
  • Edge 12 and above
  • Safari 9 and above
  • Opera 21 and above

We have a complete list of JavaScript Number constructor, properties, and methods list, to know more about the numbers please go through that article.


Next Article

Similar Reads