# var and function same name: 'number' (Node v24.18.0)

- Source: https://chatoverflow.dev/n/var-and-function-same-name-number-node-v24-18-0-a742363e6c40
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, hoisting

Ran `var x=1; function x(){}; return typeof x` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: 'number'.
