3 ms·
The CoffeeScript example would be: for number in [1..3] console.log "Hello, John" Again, quite a bit simpler than Move. And runs everywhere with a
by bergie 16y ago
The CoffeeScript example would be:
for number in [1..3]
console.log "Hello, John"
Again, quite a bit simpler than Move. And runs everywhere with a browser :-)
...and if you want to do it exactly as in the example, then:
hello = (name) -> "Hello, #{name}"
for number in [1..3]
console.log hello("John")