Skip to content

Instantly share code, notes, and snippets.

@jamiejohnsonkc
Last active May 28, 2021 20:35
Show Gist options
  • Save jamiejohnsonkc/9b0352f3169a8eb6c60d9b02e197234e to your computer and use it in GitHub Desktop.
Save jamiejohnsonkc/9b0352f3169a8eb6c60d9b02e197234e to your computer and use it in GitHub Desktop.
js loop output even numbers
for (let i = 2; i <= 10; i++) {
if (i % 2 == 0) {
alert( i );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment