title: How can I return a JavaScript string from a WebAssembly function
body: <p>How can I return a JavaScript string from a WebAssembly function?</p>
  
  <p>Can the following module be written in C(++) ?</p>
  
  <pre><code>export function foo() {
    return 'Hello World!';
  }
  </code></pre>
  
  <p><em>Also: Can I pass this to the JS engine to be garbage collected?</em></p>