[This originally appeared on my dev2dev blog 16-Nov-2007]
I agree with these coding conventions except I add the type attribute to the script element because it is a simple thing to do to appease the HTML validators. Adjust the indent and bracket style to your taste – just be consistent.
Using JSLint can help catch errors and should be used. In the next post I’ll describe how I got it integrated with Ant.
There is a testing framework called (no surprise) jsunit. So far I have only used its core for asserts. If not this then build your own test framework.