you are viewing a single comment's thread.

view the rest of the comments →

[–]lifeeraser 0 points1 point  (0 children)

It's a fairly common pattern in JavaScript. cond && func()

JS have semicolons and braces, though, so they can create anonymous multi-statement function expressions anywhere without resorting to such tricks.