3 ms·
The block that starts with the comment `//shop items`: `var label` gets declared 3 times inside each loop iteration. Even if JS had block scope, which it doesn
by kevincennis 14y ago
The block that starts with the comment `//shop items`:
`var label` gets declared 3 times inside each loop iteration. Even if JS had block scope, which it doesn't, that would be pretty bad.
- fariazz 14y agoThanks for noticing that kevincennis I've just corrected it.