Examples · learn/25-js-interop · 275 of 339
hello-js
tin run examples/learn/25-js-interop/hello-js.tinimport js "./shapes.mjs"
extern fn hypot(a: float, b: float): float
fn main() {
print(hypot(3.0, 4.0))
} Examples · learn/25-js-interop · 275 of 339
tin run examples/learn/25-js-interop/hello-js.tinimport js "./shapes.mjs"
extern fn hypot(a: float, b: float): float
fn main() {
print(hypot(3.0, 4.0))
}