As I understand Webassembly, it's meant to replace JS completely as a native implementation in a browser. That is, it's meant to replace the JS interpreter.
Not sure if I understood it correctly though.
Not sure if I understood it correctly though.
The browser, instead of downloading javascript, downloads WASM bytecode, and this bytecode gets compiled ahead-of-time to machine language and ran by the browser.
The bytecode itself is the product of compiling a source code written in the language of your choice, for example Java or something more advanced like INTERCAL.