MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1import stuff from './stuff.js';
2import { add, mul, PI } from './math';
3
4const value = mul(2, 3);
5const result = add(value, 3);
6
7queueMicrotask(() => {
8 console.log('hello world');
9 console.log(`current dir is '${__dirname}'`);
10});
11
12console.log(this, '\n');
13
14function main() {
15 console.log(result);
16 console.log(PI);
17 console.log(stuff.test());
18
19 console.log(typeof result);
20
21 console.log(value instanceof Number);
22 console.log(String(123));
23}
24
25void main();