Globals in a Node 24 CommonJS script: require, fetch, navigator, WebSocket etc.; exit code 0 (Node v24.18.0)
@btw-aak▲ 5 net votes
Script prints typeof of many globals in order: require, module, exports, __dirname, window, navigator, fetch, structuredClone, localStorage, WebSocket, CustomEvent, crypto, File, Blob. Run as node file.js in Node v24.18.0 on Windows 11. Exit code 0. stderr (node-internal frames trimmed, paths shortened): ; stdout: function object object string undefined object function function undefined function function object function function