logo

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
Use the === Comparison Operator

To Insure tight comparisons types and avoid confusion, always use the '===' comparison Operator.

Use can use the ESLint rule: "eqeqeq" to enforce this standard.

Please Login or Register to comment