Skip to content

Instantly share code, notes, and snippets.

@ir-g
Last active November 17, 2015 13:33
Show Gist options
  • Save ir-g/4c59c0ca693302cd0026 to your computer and use it in GitHub Desktop.
Save ir-g/4c59c0ca693302cd0026 to your computer and use it in GitHub Desktop.
For loop tasks
for i in [1..100] by 2 then console.log i+1
for i in [1..99] by 2 then console.log i
for i in [100..1] then console.log i
for i in [100..1] by 3 then console.log i
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