Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>What's the bug that results from the "var i; for(i=0)" pattern? Someone refactors the "var i" away and you end up with a global var.

Wrong. JSLint will complain and then you'll fix it. That's why you use JSLint. It can find stupid things like this easily and accurately.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: