Created
June 15, 2014 08:31
-
-
Save macikokoro/b724d14790d140cfaf60 to your computer and use it in GitHub Desktop.
for loop to countdown from 10 to 0 and print Blast off!
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
for (var i = 10; i >= 0; i--) { | |
console.log(i); | |
if (i === 0) { | |
console.log("Blast Off!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!!!
Works good.