📜  js 中的 elif - Javascript 代码示例

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

代码示例6
let number = 10;
if(number>=20){
  alert("number >= 20");
}else if(number === 10){
  alert("number = 10");
}
// We Don't have "elif" but you can use "else if",It's same.
//You can also use switch :)