Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Created May 14, 2014 21:19
Show Gist options
  • Save carlosrojaso/fb72b1a5aec54f39d358 to your computer and use it in GitHub Desktop.
Save carlosrojaso/fb72b1a5aec54f39d358 to your computer and use it in GitHub Desktop.
JS Loops
for ( var i = 0; i < 5; i++ ) {
// Logs "try 0", "try 1", ..., "try 4".
console.log( "try " + i );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment