It might seem super simple but use console.log as much as you need. Don’t be shy! Using console.log is a really good way of testing and debugging your code. You can print values or check variables and test functions or methods.
Especially at the beginning, add comments. Of course don’t go overboard! Adding comments can be really useful if you are struggling to remember what everything you wrote actually means. I have added comments during the development process, then removed them before committing.
Write it Down
These may seem simple but sometimes it is the simplest things that are the most effective!