3 ms·
Not in a module context: # a.mjs (()=>{ a = 1 })(); # in a shell $ node a.mjs ReferenceError: a is not defined
by bunga-bunga 3y ago
Not in a module context:
# a.mjs
(()=>{
a = 1
})();
# in a shell
$ node a.mjs
ReferenceError: a is not defined