- Prefer ES6 classes over prototypes.
- Use strict equality checks (
===and!==) except when comparing against (nullorundefined). - Prefer arrow functions
=>, over thefunctionkeyword except when defining classes or methods. - Use semicolons at the end of each statement.
- Prefer single quotes.
- Use
PascalCasefor classes,lowerCamelCasefor variables and functions,SCREAMING_SNAKE_CASEfor constants,_singleLeadingUnderscorefor private variables and functions. - Prefer template strings over string concatenation.
- Prefer promises over callbacks.
- Prefer array functions like
mapandforEachoverforloops. - Use
constfor declaring variables that will never be re-assigned, andletotherwise. - Avoid
varto declare variables.
javascript
Directory actions
More options
Directory actions
More options
javascript
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||