A handful of habits make JavaScript far less painful once they become automatic.
Use const by default and only reach for let when a value needs to change. Learn to read error messages line by line instead of skimming them. Console.log liberally while debugging, then remove it before committing. Break large functions into smaller named ones — it makes bugs easier to isolate. And read the MDN docs before a random blog post; they're usually clearer.