Also, tests are a HUGE help. They serve as in-depth documentation for your code, which is continuously up to date.
There are a lot of testing frameworks for JS, currently I use Jest.
I strongly recommend trying out test-driven development (TDD) ... check out a clear & concise video of why it matters. As frontends are not only putting backend model props into templates anymore but have their own behaviour, I think its really important that they are treated the same as backend code (i.e. that they have tests, and preferably that they are test-driven).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
100% agree on the descriptive names.
Also, tests are a HUGE help. They serve as in-depth documentation for your code, which is continuously up to date.
There are a lot of testing frameworks for JS, currently I use Jest.
I strongly recommend trying out test-driven development (TDD) ... check out a clear & concise video of why it matters. As frontends are not only putting backend model props into templates anymore but have their own behaviour, I think its really important that they are treated the same as backend code (i.e. that they have tests, and preferably that they are test-driven).