Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Yes the function keyword returns the anonymous function, the () at the end invokes that function. Also see this question for the same issue. Commented Jul 13, 2013 at 20:10
  • @CrazyTrain jslint.com Commented Jul 14, 2013 at 6:45
  • @RoyiNamir: But you're the one saying that it's better. You must have some reason to believe this. I did try jslint.com but won't give me a reason either. Commented Jul 14, 2013 at 12:41
  • @CrazyTrain better via validation. ( the correct word is "referred") Commented Jul 14, 2013 at 12:42
  • @RoyiNamir: Nah, the correct word is "irrelevant". jsLint imposes arbitrary restrictions without any rational reason. Commented Jul 14, 2013 at 14:12