Skip to content

Instantly share code, notes, and snippets.



Created Oct 5, 2018
What would you like to do?
extern crate wasm_bindgen;
use wasm_bindgen::prelude::*;
extern "C" {
fn alert(s: &str);
pub fn greet(name: &str) {
alert(&format!("Hello, {}!", name));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment