// Practice Set · JS If Conditions · guest

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

Question 1 of 5 from: JS If

What does this log?

let score = 95;
if (score >= 90) { console.log("A"); }
if (score >= 80) { console.log("B"); }
if (score >= 70) { console.log("C"); }
Question 2 of 5 from: JS If Else

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

Question 3 of 5 from: JS Switch

Here, 0 and 6 both run the same block:

switch (day) {
  case 0:
  case 6:
    console.log("weekend");
    break;
  default:
    console.log("weekday");
}
Question 4 of 5 from: JS Logical

This is meant to check for a teenager. What does it log?

let age = 50;
console.log(13 <= age <= 19);
Question 5 of 5 from: JS Logical

What does this log?

let name = "";
console.log(name || "Anonymous");
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.