prosperon/quickjs/examples/test_fib.js

7 lines
144 B
JavaScript
Raw Normal View History

2023-04-22 14:07:37 -05:00
/* example of JS module importing a C module */
import { fib } from "./fib.so";
console.log("Hello World");
console.log("fib(10)=", fib(10));