Skip to content

Instantly share code, notes, and snippets.

@wbhob
Last active December 2, 2018 17:03
Show Gist options
  • Save wbhob/a853ed021880c416409e5b7649cec666 to your computer and use it in GitHub Desktop.
Save wbhob/a853ed021880c416409e5b7649cec666 to your computer and use it in GitHub Desktop.
Making a while loop out of a for loop
let i = 0;
const total = 12;
for (; i < total;) {
doWhatever();
i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment