Declare Objects and Arrays with const
Use Parameter Defaults
camelCase Variable Names
Use Asynchronous methods when possible
Do not use Global Variables.
Line Length 100 Max
Use the === Comparison Operator
2 Space Code Indentation
How to do a Promise
Avoid async-await in a loop
How to use Async and Await
Loop an Array or Object async
Unless you have a very long string, limit your code line length to 100 characters. This makes your code more readable and you are able to have multiple files opened at a time and still be able to see the full line of code.
Please Login or Register to comment