Possible Duplicate:
JavaScript: immediate function invocation syntax
A similar question has been asked here
there, the author asked about the difference between
(
function(){}
)
();
and
function(){}();
the purpose of the first is, among other things, to inform the reader that the function is to be immediately executed. I have also seen this version
(
function(){}()
)
;
Is this the same as the above two?