One of the challenges of JavaScript is employing some time of coding convention around the language. After all, the nature of JavaScript makes it possible to get stuff done even with bad code.
If you or your team are doing a lot of JavaScript work, check out JSHint.
JSHint is a web application that attempts to enforce solid programming practices and to head off any potential problems.
The tools makes it easy to evaluate your code against a variety of rules that can be toggled on/off at will.
You can browse the source on GitHub.
Speak your mind...