Skip to content

Instantly share code, notes, and snippets.

@macikokoro
Created June 15, 2014 08:31
Show Gist options
  • Save macikokoro/b724d14790d140cfaf60 to your computer and use it in GitHub Desktop.
Save macikokoro/b724d14790d140cfaf60 to your computer and use it in GitHub Desktop.
for loop to countdown from 10 to 0 and print Blast off!
for (var i = 10; i >= 0; i--) {
console.log(i);
if (i === 0) {
console.log("Blast Off!");
}
}
@EmanuelLeon2022
Copy link

Thanks!!!

Works good.

@RubePep
Copy link

RubePep commented Mar 13, 2024

Thank you. It works well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment