Re:Javascript patterns
by rnd33 on Wednesday January 01, 2014 @08:11PM
(#6997648)
I think I've been unclear. When I say function definition I'm referring to this:
And when referring to a function expression I'm talking about this:
The latter needs to be terminated with a semicolon to prevent ambiguity (in some situations), while the former does not. This for example is valid JavaScript:
[ Parent
| on HN ]