javascript syntax explanation -
possible duplicate:
what mean? (function (x,y)){…}){a,b); in javascript
please explain , give example javascript below, can't find document explain this:
(function([arg, arg ...]) { //javascript code here })([str, str ...]);
i'm asking question because see in google facebook javascript code, of them using syntax.
marked duplicate felix kling, richard everett, matt♦, gordon, chrisf♦ nov 14 '11 @ 17:16
this question has been asked before , has answer. if answers not address question, please ask new question.
| search javascript closures. blog.morrisjohns.com/javascript_closures_for_dummies – jantimon oct 14 '11 @ 8:06 | ||
| oh, ok try, thank ghommey :) – alwayz change oct 14 '11 @ 8:09 | ||
| i doubt searching on closures much. pattern called immediately invoked function expression some. others have similar names. can used create closures, isn't necessary create closure nor way. – robg oct 14 '11 @ 8:13 |