Last active
December 31, 2019 11:24
-
-
Save MinimumViablePerson/0472b88296a14694e400939c07275519 to your computer and use it in GitHub Desktop.
Recursion from Scratch - countdown with a for loop
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
const countdown = number => { | |
for (let i = number; i > 0; i--) { | |
console.log(i) | |
} | |
console.log('HAPPY NEW YEAR!') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment