Course · Section 3: JavaScript Fundamentals – Part 2 · Lecture 50: The while Loop
Implement `whileCountdown(n)` returning `[n, n-1, ..., 1]` using a while loop.
+ 1 hidden test run on Submit.
A while loop pushes and decrements until the counter drops below 1.
Run your code to see results.