const maxNumber = Math.pow(10, 1000); // max positive number
if (maxNumber === Infinity) {
console.log('Let's call it Infinity!');
}
console.log(1 / maxNumber);
const a = 2 / 0;
console.log(a); // Infinity
const a = -2 / 0;
console.log(a); // -Infinity