Learn HTML and CSS
If you can get into the habit of sticking to one style of code formatting, your code will be easy to read and understand. This includes ways to organize braces, use of indents and spaces, etc. All this does not affect the operation of the code, but it will be easier for you to understand it later.
There are situations where the JS code consists of a large number of lines. In order not to forget what exactly a variable was declared for at the beginning of the code, it is better to give it a meaningful name.
Study of other works
Sometimes it happens that the developer finds himself in a dead end and does not know how to solve the problem further. Then he starts looking for clues and solutions from others. It’s not a call to borrow someone else’s code, you can just familiarize yourself with it and maybe even find a better way. Also, you will learn to understand code written by another person, because there are situations where you need to refine and correct someone else’s work.
Debugging tools and frameworks
If your script isn’t working properly, you don’t know what’s wrong, and you’re on the verge of a nervous breakdown, use some helpful tools for web developers.
Spend some time learning the frameworks – it will save you from writing boilerplate code and worrying about cross-browser compatibility. Many projects have been implemented using frameworks, and there may be times when you need to fix or finish something in them.
Find simple solutions
Reinventing the wheel can be rewarding, except when it comes to real, real projects. A smart approach is needed here. If you need to implement a task, first look for ready-made solutions. If you don’t and start solving the problem yourself, your code might be too long and complicated, and everything could fit in two simple lines.