Best Practices
Declare Objects and Arrays with const
Use Parameter Defaults
camelCase Variable Names
Use Asynchronous methods when possible
Initialize Variables
Prefer Destructuring
Standards
Do not use Global Variables.
Line Length 100 Max
Use the === Comparison Operator
Use ESLint
2 Space Code Indentation
Index pages
Examples
How to do a Promise
Avoid async-await in a loop
How to use Async and Await
Loop an Array or Object async
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
Please Login or Register to comment