Search code examples
webassembly

How to Print Text In Web Assembly


Is there any way to print text onto the window directly in web assembly instead of having to pass string data into javascript, or print to the console?


Solution

  • No. WebAssembly can't directly manipulate the DOM yet. For now you must use Javascript glue. It is a planned future feature however.