The expression [][[]] evaluates to undefined in JavaScript. My understanding of this was that the compiler sees the second set of […] and interprets that to be an array subscript operator (because …
Tag: semantics
Javascript: difference between a statement and an expression?
I asked this question earlier, and after thinking about the topic some more, I began to wonder where the seemingly fuzzy boundary between the meanings of the terms “statement” and “expression” lies. …