📜  5.4.2. else 子句¶ - Javascript 代码示例

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

代码示例1
let billHasBeenPaid = true;

if (!billHasBeenPaid) {
   console.log("Your bill is due soon!");
} else {
   console.log("Your payments are up to date.");
}

//Your payments are up to date.

///remember: ! = "not"