Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Created May 14, 2014 21:21
Show Gist options
  • Save carlosrojaso/389ebf80b7b832f8082b to your computer and use it in GitHub Desktop.
Save carlosrojaso/389ebf80b7b832f8082b to your computer and use it in GitHub Desktop.
JS do while
do {
// Even though the condition evaluates to false
// this loop's body will still execute once.
alert( "Hi there!" );
} while ( false );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment