JavaScript Best Practices
JavaScript guidelines
The following guidelines cover how to write JavaScript for MDN code examples.
The following is a fairly simple set of JavaScript guidelines. We could go a lot deeper on this, but essentially we want to provide simple guidelines for writing concise examples that will be understandable by as many people as possible, rather than detailed guidelines for writing complex web apps. If you want something that goes into more detail, we'd recommend the AirBnB JavaScript Style Guide, which is generally compatible with our guidelines.
Source: Mozilla, https://developer.mozilla.org/en-US/docs/MDN/Guidelines/Code_guidelines/JavaScript#general_javascript_guidelines
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.