JavaScript int max
console.log(Number.MAX_SAFE_INTEGER);
// expected output: 9007199254740991
Batman
console.log(Number.MAX_SAFE_INTEGER);
// expected output: 9007199254740991
Number.MAX_VALUE;
let maxY = Number.MIN_SAFE_INTEGER, minY = Number.MAX_SAFE_INTEGER;
Number.MAX_SAFE_INTEGER
const num1 = 450;
const num2 = 350;
const num3 = 1000;
const maxNumber = Math.max(num1, num3, num2);
console.log("Bigger number is =", maxNumber);
//Output: Bigger number is = 1000
console.log(Math.max(1, 3, 2));
// expected output: 3
console.log(Math.max(-1, -3, -2));
// expected output: -1
const array1 = [1, 3, 2];
console.log(Math.max(...array1));
// expected output: 3