- Make sure your JavaScript code is in balance with its environment
- Create accessible JavaScript
- Create usable JavaScript
- Create easy applicable JavaScript
- Create future-proof JavaScript
- Know JavaScript’s weaknesses, limitations and bugs
- Often there is more than one good solution
- Write your own scripts or reuse code from trusted places
- Optimize your JavaScript code for performance
- Use tools to optimize your work process
Full read here: Ten good practices for writing JavaScript in 2005