Hacker News new | past | comments | ask | show | jobs | submit login

JSLint recommends declaring vars at the top of the function because vars have function-scope regardless of where they appear in the function ("variable hoisting").



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

Search: