// Practice Set · JS If Conditions · guest

Guest practice: this set is not saved and does not count.

Question 1 of 5 from: JS If Else

An if...else if chain must always end with an else.

Question 2 of 5 from: JS Switch

What does this log?

let level = 1;
switch (level) {
  case 1:
    console.log("one");
  case 2:
    console.log("two");
    break;
  case 3:
    console.log("three");
}
Question 3 of 5 from: JS Booleans

What does this log?

console.log(Boolean(" "));
Question 4 of 5 from: JS Booleans

An empty array [] is truthy.

Question 5 of 5 from: JS Logical

!(5 === 8) is true.

Ready to submit?

Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.