If you use Array.map (or underscore's map, etc.) then you won't run into this problem. The functional programmer in me gets a little angry whenever I see a for loop in a language that supports higher order functions.
I understand first and second example, but not the third.<p>Someone care to explain?
You can assign value for card but no read at the same line?<p>Once I though that I understand something but I was wrong :)