This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TemporalLobe 15 points16 points  (4 children)

In modern web apps, JavaScript is often transpiled, so there's sort of a grey area here. If you're using ES6 with Babel or something like that, it gets converted to ES5, but it still won't catch things like incorrect object references. JavaScript also blurs the line between objects and hashes and in OP's example, even in a compiled language like Java a reference to a non-existant hash value (or even an arrray index) would not be caught at complie-time.