Tin

Examples · learn/25-js-interop · 275 of 339

hello-js

examples/learn/25-js-interop/hello-js.tintin run examples/learn/25-js-interop/hello-js.tin
import js "./shapes.mjs"

extern fn hypot(a: float, b: float): float

fn main() {
  print(hypot(3.0, 4.0))
}