| 1 |
# `console.log` |
| 2 |
|
| 3 |
[View full source code][code] or [view the compiled example online][online] |
| 4 |
|
| 5 |
[online]: https://rustwasm.github.io/wasm-bindgen/exbuild/console_log/ |
| 6 |
[code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/console_log |
| 7 |
|
| 8 |
This example shows off how to use `console.log` in a variety of ways, all the |
| 9 |
way from bare-bones usage to a `println!`-like macro with `web_sys`. |
| 10 |
|
| 11 |
## `src/lib.rs` |
| 12 |
|
| 13 |
```rust |
| 14 |
{{#include ../../../examples/console_log/src/lib.rs}} |
| 15 |
``` |