Standard built-ins
Number.MAX_SAFE_INTEGER
The positive safe integer limit is 9007199254740991 (2^53 − 1). Larger integers can sometimes be represented but do not have a unique safe-integer representation. This constant is not the largest finite Number.
Formal Syntax & Structure
javascript syntaxjavascript
Number.MAX_SAFE_INTEGERReturn Value
number
Read-only constant representing the positive safe integer boundary.
Working Example
Example Snippetjavascript
console.log(Number.MAX_SAFE_INTEGER);