Developers have done some amazing things with JS, but I think everyone can agree its not the most elegant language.
I understand we are where we are because the its the only language supported by browsers. But will we ever move away from it?
Could Google or Mozilla build support for another language into their browsers while developers gradually move away from JS?
Will developers be open to alternatives? Will we finally standardize on a simpler set of tools and frameworks?
Does WebAssembly solve this? Is TypeScript good enough?
I think instead the real issue is that we're too bad at educating people in how to properly use the language. Sure there's corners of the language that are bad, but as a seasoned JavaScript developer you simply know to ignore those corners. So they don't bother you. You instead focus on the cool things about the language. Any programming language have good and bad things. And we as developers learn to focus and leverage the good parts to our advantage. The ideal of a perfect language is a pipe dream unfortunately - instead my advice is to really learn the language and embrace it instead of fighting it.