clarify js part in the readme

This commit is contained in:
Nik Graf
2018-06-13 19:13:02 +02:00
committed by GitHub
parent 0cd767c9d4
commit 005630929c

View File

@ -148,10 +148,10 @@ support!. Let's take a look at that and see how it works.
First create an `index.js` file: First create an `index.js` file:
```js ```js
const js = import("./js_hello_world"); const helloWorld = import("./js_hello_world");
js.then(js => { helloWorld.then(wasmModule => {
js.greet("World!"); wasmModule.greet("World!");
}); });
``` ```