The Number.MAX_SAFE_INTEGER property of the Number object represents the maximum safe integer in JavaScript (i.e. 253 - 1).
Syntax
Its Syntax is as follows
Number.MAX_SAFE_INTEGER
Example
Live Demo
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Number.MAX_SAFE_INTEGER;
document.write("Maximum safe integer: " + result);
</script>
</body>
</html>
Output
Maximum safe integer: 9007199254740991