2016-03-27 18 views

cevap

2

, CoffeeScript comprehensions ve aralıkları dayanır. the documentation Gönderen:

CoffeeScript sağladığını sadece düşük seviyeli döngü while döngü.

Sen b ile a için bir dizi içeren bir şey yapabileceğini

elle güncellenmektedir:

b = 0 
for a in [0..99] 
    console.log a b 
    b += 10 

Veya kullanmak while o:

a = 0 
b = 0 
while a < 100 
    console.log a b 
    ++a 
    b += 10