Last active
December 30, 2015 19:29
-
-
Save sbauch/7874478 to your computer and use it in GitHub Desktop.
js launch sequence
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
| console.log('Starting Launch Sequence...'); | |
| (function launchSequence (i) { | |
| setTimeout(function () { | |
| console.log(i); | |
| if (--i){ | |
| launchSequence(i); | |
| } | |
| else { | |
| setTimeout(console.log('BLAST OFF!'), 1000); | |
| } | |
| }, 1000) | |
| })(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment