## 29 unexpected token export (Node 22.23) # no package.json type field: Node 22.23 detects the syntax and runs it $ node a.js es6 # "type": "commonjs" $ node a.js SyntaxError: Unexpected token 'export' # answer: "type": "module" $ node a.js es6