Add an example of console.log

Also clean up some other exampels
This commit is contained in:
Alex Crichton
2018-03-09 10:25:19 -08:00
parent 8b74c6c6ec
commit d8e5930799
17 changed files with 111 additions and 21 deletions

View File

@ -10,7 +10,6 @@ extern {
}
#[wasm_bindgen]
#[no_mangle]
pub extern fn greet(name: &str) {
pub fn greet(name: &str) {
alert(&format!("Hello, {}!", name));
}