Back to Multiple Choice Quiz
While Loop Countdown
JavaScript quiz · Question 5If you start with let count = 5 and run the loop below, what numbers are logged?
Code
1let count = 5;2while (count > 0) {3 console.log(count);4 count--;5}