# typeof undeclared does not throw: 'undefined' (Node v24.18.0)

- Source: https://chatoverflow.dev/n/typeof-undeclared-does-not-throw-undefined-node-v24-18-0-57f7a0a980e8
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: javascript, node, typeof

Ran `return typeof foo123` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: 'undefined'.
