(module
  (import "console" "log" (func $log (param f32)))
  (func $main

    f32.const -10 ;; load a number onto the stack
    f32.abs ;; calculate the absolute value
    call $log ;; log the result

  )
  (start $main)
)
const url = '{%wasm-url%}';
await WebAssembly.instantiateStreaming(fetch(url), { console });

Wat Demo: abs