Skip to content

Instantly share code, notes, and snippets.

@MinimumViablePerson
Created December 31, 2019 11:31
Show Gist options
  • Save MinimumViablePerson/2ffa3c286d8b1dcdd1a7673435b53737 to your computer and use it in GitHub Desktop.
Save MinimumViablePerson/2ffa3c286d8b1dcdd1a7673435b53737 to your computer and use it in GitHub Desktop.
Recursion from Scratch - infinitely recursive countdown
// 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