Course · Section 10: A Closer Look at Functions · Lecture 137: First-Class and Higher-Order Functions
Implement `countDown(n)` returning `[n, n-1, ..., 1]` using recursion, with `countDown(0)` returning an empty array.
+ 1 hidden test run on Submit.
Prepending n to the countdown of n-1 produces the descending array, ending at [].
Run your code to see results.