wasm-bindgen/examples/math/README.md

22 lines
612 B
Markdown
Raw Normal View History

2018-03-21 20:03:40 +03:00
# `Math`
[View this example online](https://webassembly.studio/?f=ffnm4kpzmib)
2018-03-21 20:03:40 +03:00
This directory is an example of using the `#[wasm_bindgen]` macro to import the
`Math` object and invoke various functions on it.
You can build the example with:
```
$ ./build.sh
```
(or running the commands on Windows manually)
and then opening up `index.html` in a web browser should show a dialog!
For more information about this example be sure to check out
[`hello_world`][hello] which also has more comments about caveats and such.
[hello]: https://github.com/alexcrichton/wasm-bindgen/tree/master/examples/hello_world