Best Practices

Declare Objects and Arrays with const

Use Parameter Defaults

camelCase Variable Names

Use Asynchronous methods when possible

Initialize Variables

Prefer Destructuring

JavaScript : Standards
2 Space Code Indentation

Using only 2 spaces for indentation enables you to get the most code in a line and also show nesting.

The ESLint rule 'indent' can be used to automate this standard.

Please Login or Register to comment