Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Created May 14, 2014 21:19
Show Gist options
  • Save carlosrojaso/06ee1b5013413d701928 to your computer and use it in GitHub Desktop.
Save carlosrojaso/06ee1b5013413d701928 to your computer and use it in GitHub Desktop.
JS while
var i = 0;
while ( i < 100 ) {
// This block will be executed 100 times.
console.log( "Currently at " + i );
i++; // Increment i
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment