summaryrefslogtreecommitdiff
path: root/examples/hello_module.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello_module.js')
-rw-r--r--examples/hello_module.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/hello_module.js b/examples/hello_module.js
new file mode 100644
index 0000000..463660f
--- /dev/null
+++ b/examples/hello_module.js
@@ -0,0 +1,6 @@
+/* example of JS module */
+
+import { fib } from "./fib_module.js";
+
+console.log("Hello World");
+console.log("fib(10)=", fib(10));