Ask HN: What should an undefined variable evaluate to? I think most (all?) compiled languages evaluate to a compilation error. As for NodeJS, I thought it would evaluate to `undefined`, but it seems to consistently throw a `ReferenceError` for version 20. What's the result for other languages? |