Looping a Function"> Looping a Function">
The following codes will output the numbers 1 through 10 in the console, although console.log could be any function that accepts an input.
for x in [1..10]
console.log x
console.log x for x in [1..10]