Created
December 31, 2019 11:31
-
-
Save MinimumViablePerson/2ffa3c286d8b1dcdd1a7673435b53737 to your computer and use it in GitHub Desktop.
Recursion from Scratch - infinitely recursive countdown
This file contains 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
// Counting down is: | |
const countdown = number => { | |
// Logging the current number and counting down the next number down otherwise. | |
console.log(number) | |
countdown(number - 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment