Unless every browser decides to allow scripting in a less shotgun-your-foot language, javascript will remain widely used.
It’s called web assembly, and all the major browsers (Safari, Chrome, Firefox, Edge) now support it. That’s not to say that Javascript is going to disappear, but other languages might take over much of its marketshare.
Even wasm relies on javascript and frankly, I see its existence as a failure of many layers. Machine code -> Operating system -> Browser -> WASM (emulated machine code)
It’s called web assembly, and all the major browsers (Safari, Chrome, Firefox, Edge) now support it. That’s not to say that Javascript is going to disappear, but other languages might take over much of its marketshare.
Even wasm relies on javascript and frankly, I see its existence as a failure of many layers. Machine code -> Operating system -> Browser -> WASM (emulated machine code)