Examples · learn/25-js-interop · 282 of 339
wrong-type.panics
tin run examples/learn/25-js-interop/wrong-type.panics.tinimport js "./shapes.mjs"
extern fn sides(name: string): int
fn main() {
print(sides("square"))
print(sides("hexagon")) // the JS returns the string "many"
}