Course · Section 10: A Closer Look at Functions · Lecture 135: Default Parameters
Implement `countdown(n)` returning the array `[n, n-1, ..., 1]`, or an empty array when `n` is `0`.
+ 1 hidden test run on Submit.
A loop from n down to 1 collects the descending sequence, returning [] when n is 0.
Run your code to see results.