Skip to content

Instantly share code, notes, and snippets.

@valerymelou
Created May 20, 2018 10:39
Show Gist options
  • Save valerymelou/ed333aabbd6eb9eb3a7e209278748398 to your computer and use it in GitHub Desktop.
Save valerymelou/ed333aabbd6eb9eb3a7e209278748398 to your computer and use it in GitHub Desktop.
const digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
for (const digit of digits) {
if (digit % 2 === 0) {
continue;
}
console.log(digit);
}
/**
1
3
5
7
9
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment