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
Use Asynchronous methods when possible

Using Async methods such as 'Promises' and 'async / await' improves performance and should be used when possible.

Please Login or Register to comment