Answers for "5.4.2. else Clauses¶"

0

5.4.2. else Clauses¶

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"
Posted by: Guest on June-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language