// Within this limit we can do our calculations safely with precision
// After MAX_SAFE_INTEGER limit, use BigInt value type.
console.log(Number.MAX_SAFE_INTEGER); // (2^53 - 1) => 9007199254740991
console.log(Number.MIN_SAFE_INTEGER); // (-(2^53 - 1)) => -9007199254740991