📜  if 语句 es6 - Javascript 代码示例

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

代码示例4
if ((age >= 14) && (age < 19)) {        // logical condition
status = "Eligible.";               // executed if condition is true
} else {                                // else block is optional
status = "Not eligible.";           // executed if condition is false
}