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
Use Parameter Defaults

Missing parameters default to undefined. Using Defaults organizes your code and helps avoid bugs.

Please Login or Register to comment