-
Notifications
You must be signed in to change notification settings - Fork 0
Best Practices
Biswajit Sundara edited this page Feb 22, 2021
·
3 revisions
- Be consistent as per your project to use single quote
'or double quotes"".If single quote is used then use the same and vice versa. - Without adding a semi colon
;to the end of each java script statement works however its better to add it. - Use
ESLintstatic code analyzer to scan your code based on the defined rules and then highlight issues. - Give preference to
constand thenletwhile declaring variables and avoidvar - Do not create too many nested call backs that might lead to call back hell. Instead break it down using promises, generators.