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 : Best Practices
Declare Objects and Arrays with const

Declaring Objects and Arrays with const avoids accidental type change.

Please Login or Register to comment