📜  检查值是否为 NaN - Javascript 代码示例

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

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