Conditionals
Computer Science · JavaScript
Loading practice question…
About this practice set
Conditionals is part of Computer Science (JavaScript). Questions are generated with new numbers each time you practise. Levels available: Easy. After you answer, an explanation is shown.
Example questions
A taste of what you will practise. Answers are revealed after you try.
Easy
What does this JavaScript code log? if (9 > 5) { console.log(1); } else { console.log(2); }