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
camelCase Variable Names

Complex Variable names are distinguished by a Capital Letter. This is a common standard among JavaScript programmers.

An exception is when you are naming a Class.

Please Login or Register to comment