JS Styleguide

« Back to Index

Table of Contents

  1. Types
  2. Objects
  3. Arrays
  4. Strings
  5. Functions
  6. Properties
  7. Variables
  8. Try / Catch
  9. Hoisting
  10. Comparison Operators & Equality
  11. Blocks
  12. Comments
  13. Whitespace
  14. Commas
  15. Semicolons
  16. Type Casting & Coercion
  17. Naming Conventions
  18. Accessors
  19. Constructors
  20. Events
  21. Modules
  22. jQuery
  23. Testing
  24. Performance
  25. Resources

All code in any code-base should look like a single person typed it, no matter how many people contributed.

Types

⬆ back to top

Objects

⬆ back to top

Arrays

⬆ back to top

Strings

⬆ back to top

Functions

⬆ back to top

Properties

⬆ back to top

Variables

⬆ back to top

Try/Catch

⬆ back to top

Hoisting

⬆ back to top

Comparison Operators & Equality

⬆ back to top

Blocks

⬆ back to top

Comments

⬆ back to top

Whitespace

⬆ back to top

Commas

⬆ back to top

Semicolons

⬆ back to top

Type Casting & Coercion

⬆ back to top

Naming Conventions

⬆ back to top

Accessors

⬆ back to top

Constructors

⬆ back to top

Events

jQuery

⬆ back to top

Performance

⬆ back to top

Resources

Read This

Tools

Other Style Guides

Other Styles

Further Reading

Books

Blogs

⬆ back to top