Created
April 18, 2019 09:31
-
-
Save 4skinSkywalker/11485d0574f335c64d735cd074f88e61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function countdown(num) { | |
| let array = [] | |
| function helperRecursive(n) { | |
| array.push(n) | |
| if (n === 0) return | |
| helperRecursive(n - 1) | |
| } | |
| helperRecursive(num) | |
| return array | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment