Skip to content

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 ESLint static code analyzer to scan your code based on the defined rules and then highlight issues.
  • Give preference to const and then let while declaring variables and avoid var
  • Do not create too many nested call backs that might lead to call back hell. Instead break it down using promises, generators.

Clone this wiki locally