📜  javascript 检查是否为 nan - Javascript 代码示例

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

代码示例2
let b=1
let n=readline()
if(isNaN(b)){
  console.log("You typed 0!")
}else{
  console.log("You did not type 0!")
}