Re:Why I sometimes hate JavaScript
by afandian on Friday February 27, 2015 @08:56AM
(#9118812)
This is valid JS:
What's being done with the values of 1, 2, undefined, true/false, 3 and undefined? Nothing if they're not assigned. But as every function returns a value and invocations are therefore an expression, it would be impossible to disallow expressions to be evaluated but not assigned.
[ Parent
| on HN ]
There are no comments on this comment yet.