0

Example:

 var hello = (function(text) { 
     return "hello " + text
  }("world"))

And

var hello = (function(text) { 
    return "hello " + text
})("world")

are they the same?

Kai
  • 3,104
  • 2
  • 19
  • 30
  • please check again, it's not duplicate. – Kai Aug 15 '14 at 05:26
  • 1
    Just check the duplicate of the duplicate of the duplicate of the duplicate http://stackoverflow.com/questions/3384504/location-of-parenthesis-for-auto-executing-anonymous-javascript-functions – elclanrs Aug 15 '14 at 05:27
  • 1
    my bad, yes I should've closed as a dupe of the dupe of the dupe. @elclanrs feel free to reopen and close again. – Fabrício Matté Aug 15 '14 at 05:28
  • ops, thanks! a long journey haha. – Kai Aug 15 '14 at 05:29
  • @FabrícioMatté , it's OK, because finally it's duplicate of many duplicate as elclanrs said lol, thanks for everything. – Kai Aug 15 '14 at 05:31

0 Answers0