Created
August 2, 2018 19:41
-
-
Save HichemBenChaaben/a3982b91cbf0210bbebccd7c6debd9fe to your computer and use it in GitHub Desktop.
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 = (n) => { | |
console.log(n); | |
return (n > 0) ? countDown(n - 1) : n; | |
} | |
countDown(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment