2 ms·
Any specific examples you'd like to site? I always enjoy learning new things by seeing how people might re-factor or rewrite existing code samples.
by WesleyJohnson 14y ago
Any specific examples you'd like to site? I always enjoy learning new things by seeing how people might re-factor or rewrite existing code samples.
- kevincennis 14y agoThe 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.