Browser support issues
Call things by their name — accessible, short, and readable variable and function names
Avoid global variables.
Stick to a strict coding style.
Comment as much as needed but not more.
Avoid mixing with other technologies.
Use shortcut notation when it makes sense.
Modularize by creating one function per task.
Allow for configuration and translation.
Avoid heavy nesting.
Keep DOM access to a minimum.
Build code based on universal standards.
Don’t trust any data.
Remember that live code is different from development code.
The Bottom Line