Guest practice: this set is not saved and does not count.
This is meant to average 80 and 90. What does it actually log?
let avg = 80 + 90 / 2; console.log(avg);
10 / 0 gives Infinity in JavaScript. It does not cause an error.
10 / 0
Infinity
The string "0" is falsy.
"0"
"20" < "5" is true.
"20" < "5"
true
In an if...else if...else chain, JavaScript runs every block whose condition is true.
if...else if...else
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.
Check my answers