Why style guides?
- JavaScript code written in a clear and consistent style is easier to read
- JavaScript code is sent directly to the public along with the HTML
- “All code in any code-base should look like a single person typed it, no matter how many people contributed“
Therefore, write your code for maximum clarity:
Your code must conform to these recommendations:
To make sure it does conform, automatically, with zero effort, install the HTML-CSS-JS Prettify package for Sublime, and learn how to use it.
Similar packages exist for Atom and Brackets.