Skip to content

Instantly share code, notes, and snippets.

@macikokoro
Last active August 29, 2015 14:03
Show Gist options
  • Save macikokoro/6c6ab5ae58b57669661c to your computer and use it in GitHub Desktop.
Save macikokoro/6c6ab5ae58b57669661c to your computer and use it in GitHub Desktop.
For loop example to print descending numbers.
for(var number = 6; number > 0; number--) {
console.log(number);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment