I\'m reading the Mozilla developer\'s site on closures, and I noticed in their example for common mistakes, they had this code:
Helpful
Even if it's declared outside of the for loop, each of the anonymous functions will still be referring to the same variable, so after the loop, they'll all still point to the final value of item.