quickjs-done/examples/test_fib.js
2020-09-06 18:53:08 +02:00

6 lines
144 B
JavaScript

/* example of JS module importing a C module */
import { fib } from "./fib.so";
console.log("Hello World");
console.log("fib(10)=", fib(10));