Skip to content

03. How import and run a Javascript Module

Gurigraphics edited this page Mar 21, 2022 · 1 revision

Create file: data.js

export const hello = "Hello World";

Create file: example.js

import { hello } from "data.js"
console.log( hello )

Execute

qjs -m example.js
Clone this wiki locally