Tag Archives: coffeescript

CoffeeScript: How to write For Loop


How to write for loop in CoffeeScript.

for loop of array

In Ruby, it is written as items.each.

for loop of array with index

In Ruby, it is written as items.each_with_index.