Oh, there are better people than myself to belabor this particular point.
JS is a not-language that over-exceeded anyone's wildest expectations for popularity, and people have been playing catch up to try to turn it into a real language with things like TypeScript for years. It's not designed; it grew, like kudzu. Like poison ivy.
But the worst thing about JavaScript isn't really its fault; it's how it's been abused by web developers. The ecosystem is a toxic mess of security holes and abuse opportunities. The standard development practices resemble less real software development and more Jackson Pollock throwing paint at a canvas.
It's just awful. Everything about it is awful. Really good developers can create nice, well-structured, secure, efficient applications in JavaScript; there are 6 of those people in the entire world, and every JS developer thinks they're one of them.