for_array.coffee
arr = ['a','b','c','d']
for i of arr
console.log i
#=> 0 1 2 3
for i in arr
console.log i
#=> a b c d
Go to list of users who liked
More than 5 years have passed since last update.
arr = ['a','b','c','d']
for i of arr
console.log i
#=> 0 1 2 3
for i in arr
console.log i
#=> a b c d
Register as a new user and use Qiita more conveniently
Go to list of users who liked