Skip to content

Instantly share code, notes, and snippets.

@reime005
Created December 27, 2020 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/75eaba4ac3fb8deb453743556dd5f053 to your computer and use it in GitHub Desktop.
Save reime005/75eaba4ac3fb8deb453743556dd5f053 to your computer and use it in GitHub Desktop.
for (let i = 5; i < 0; i--) {
console.log(i);
}
console.log('do-while');
let j = 5;
do {
console.log(j);
j--;
} while (j < 0);
console.log('while');
let k = 5;
while (k < 0) {
k--;
console.log(k);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment