Languages
[Edit]
EN

JavaScript - get supported max integer value

0 points
Created by:
MindOfMadness3
246

In this article, we would like to show you how to get supported max integer value in JavaScript.

Quick solution:

Number.MAX_SAFE_INTEGER

 

Practical example

In this example, we print in the console the Number.MAX_SAFE_INTEGER constant that represents the maximum safe integer in JavaScript.

// ONLINE-RUNNER:browser;

console.log(Number.MAX_SAFE_INTEGER);

Output:

9007199254740991
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join