Coffeescript for loop
coffeescript
Solution
This loop will increment by the negative of stepSize.
maxVal = 10
stepSize = 1
for scale in [maxVal..0] by -stepSize
console.log scale
However, if stepSize is actually 1, then
maxVal = 10
for scale in [maxVal..0]
console.log scale
would produce the same result
Problem
I am trying to convert some apple chart examples from javascript to coffeescript. Having a tough time trying to figure out how to write this for loop in coffee script. Thanks for any help in advance ``` for (scale = maxVal; scale >= 0; scale -= stepSize) {...} ```