Ok, admittedly I was using typescript but honestly, I really enjoyed using JavaScript. I kinda feel like people who shit on it have never used it much, or aren't very experienced, or it just wasn't to their taste and they're jumping on the hate train that the others like to conduct.
Definitely 2023 years worth of experience. I taught Jesus himself JS. Which, fun fact, doesn't stand for JavaScript, but stands for JesusScript. I would never lie on the internet.
4 years isn’t enough to hate javascript. Either those 4 years are entirely in JS, in which case it’s all you know and thus you lack perspective. OR, you spent e.g. 2 years with a different language and only 2 in JS, in which case you don’t have enough experience with JS to have an informed opinion.
Don’t worry though, we all started our JS hating journey like that. Give it a few more years and I promise you’ll be able to hate javascript like the masters.
It's probably also related to when a person first encountered JS. If you learned it pre-2015—even if you're aware of the changes made in ES6—I can see how it would be hard not to view JS as cumbersome. I personally love to use it, but I can't imagine that would be true without let, const, classes, etc.
My feelings toward JavaScript depend on the context in which I'm using it. I really like JavaScript in a React app or Next.js, but I don't care for it in Views and Razor page in .NET web applications, though it's getting better.