These are my personal preferences to coding javascript, feel free to use this as a template to create your own style guide.
- Code SHOULD be indented with spaces only (not tabs).
- Each level of indentation SHOULD consist of 2 spaces.
- Lines SHOULD be 80 characters max (where possible).
- Semicolons are NOT optional.