📜  infinity javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:38.109000             🧑  作者: Mango

代码示例1
const maxNumber = Math.pow(10, 1000); // max positive number

if (maxNumber === Infinity) {
  console.log('Let\'s call it Infinity!');
}

console.log(1 / maxNumber);