Last active
November 17, 2015 13:33
-
-
Save ir-g/4c59c0ca693302cd0026 to your computer and use it in GitHub Desktop.
For loop tasks
This file contains hidden or 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
for i in [1..100] by 2 then console.log i+1 |
This file contains hidden or 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
for i in [1..99] by 2 then console.log i |
This file contains hidden or 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
for i in [100..1] then console.log i |
This file contains hidden or 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
for i in [100..1] by 3 then console.log i |
This file contains hidden or 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
for i in [1..13] | |
if i is 1 then i="a" | |
if i is 13 then i="k" | |
if i is 12 then i="q" | |
if i is 11 then i="j" | |
console.log i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment