Yes, it is possible, but not likely . There is so much C++ and Java code out there, that it would take decades to rewrite it all. More likely is that C++ or more likely Rust will mostly replace JavaScript with WebAssembly. This will result in better performance with lots of Rust developers.
Read moreIs WebAssembly going to replace JavaScript?
Originally Answered: Will JavaScript be replaced by WebAssembly? No, it won’t . Not all situations will require a compiled solution. There are use cases where current Javascript works just fine without having compiled code to worry about.
Read moreWhat is replacing JavaScript?
1. Dart . Dart is an object-oriented C-like language Google built in an attempt to replace JavaScript. Dart is statically-typed, meaning that it eliminates some of the most common error sources in JS code.21 Kas 2019
Read more