P
P
Pasha2014-11-30 00:00:14
CoffeeScript
Pasha, 2014-11-30 00:00:14

How to get the iteration counter?

arr = [
   "foo"
   "bar"
]

for item in arr
   #Как тут получить счетчик итераций?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2014-11-30
@korovnikiss

arr = [
   "foo"
   "bar"
]

for item,i in arr
   alert item + i

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question