Skip to content

Instantly share code, notes, and snippets.

@ddeveloperr
Created March 24, 2015 07:48
Show Gist options
  • Save ddeveloperr/7bccb52979c974714602 to your computer and use it in GitHub Desktop.
Save ddeveloperr/7bccb52979c974714602 to your computer and use it in GitHub Desktop.
While JS
var result = 1;
var counter = 0;
while (counter < 10) {
result = result * 2;
counter = counter + 1;
}
console.log(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment