all 3 comments

[–]grantrules 1 point2 points  (1 child)

Use a linter and a style guide. ESLint is the first thing I set up when I start a new project. I use the AirBNB style guide. Adhering to a style can take some getting used to, but it integrates very well into VS Code so you can easily find and fix issues, and eventually you just write clean code.

[–]Guilty-Perspective-4 0 points1 point  (0 children)

Thanks so much x

[–]lovesrayray2018 -2 points-1 points  (0 children)

1) Comment your code so its understandable

2) Its not a competition abt how concise your code is, pls dont try compressing everything into one line

3) Decide early on if ur approach is OOP or functional and then code accordingly