(module
(import "console" "log" (func $log (param i32)))
(func $main
;; load `12` and `3` onto the stack
i32.const 12
i32.const 3
i32.div_u ;; divide one number by the other
call $log ;; log the result
)
(start $main)
)
const url = '{%wasm-url%}';
await WebAssembly.instantiateStreaming(fetch(url), { console });