News for hackers. Stuff that matters.
Re:WTF does this code do? by sigvef on Monday March 24, 2014 @01:30PM (#7459666)
This is why you should always use semicolons in JavaScript. Omitting semicolons here turns this:

  var angry = say('Garrrr!')
  
  // what should I say?
  (amIHappy ? happy : angry)()
into this:

  var angry = say('Garrrr!')(amIHappy ? happy : angry)()

There are no comments on this comment yet.