Created
May 20, 2018 10:39
-
-
Save valerymelou/ed333aabbd6eb9eb3a7e209278748398 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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