Replacing JavaScript
Today's JavaScript is different from JavaScript of 10 years ago. There's also TypeScript and other alternatives that compile to JavaScript.
Are you looking for something different?
The annoying thing is that the community/OSS is so great that nothing that departs too drastically from JavaScript can get traction. Code you're working with is written in JS, docs are written in JS, tutorials written in JS, people you talk to are talking about JS.
TypeScript has really taken off because it's still very similar to JavaScript, something that can't be said of things like Elm or ReScript.