← Back to Question List
JavaScript Quiz #5
While Loop Countdown
If 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}