📜  JS if 条件 - Javascript 代码示例

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

代码示例1
const count = 20;

if (count === 0) {
  console.log('There are no students');
} else if (count === 1) {
  console.log('There is only one student');
} else {
  console.log(`There are ${count} students`);
}