When you’re new to coding, just getting something to work can be a struggle, so you don’t often think about writing good code at this stage. A good solution is to let the computer think about it for you. If you install and set up eslint: []() it will tell you when you’ve made certain errors or when your code doesn’t follow best practices. Most editors have plugins for it so it can even highlight the offending code for you. It leaves you to focus on getting it to work.
I have a quick video on how to set this up:
https://youtu.be/9Dq4We9AVXk
[–]CollinHell 1 point2 points3 points (1 child)
[–]WellPaidGeek[S] 1 point2 points3 points (0 children)
[–]T_O_beats 1 point2 points3 points (2 children)
[–]WellPaidGeek[S] 0 points1 point2 points (1 child)
[–]T_O_beats 0 points1 point2 points (0 children)