Is there any difference between calling a function of a function on a self-executing javascript function before or after the final bracket

Possible duplicate:
Brackets for automatically executing anonymous JavaScript functions?

The answer may be simple, but I'm just curious.

I saw the functions performed by the user as

(function() {
//...
}());

and

(function() {
//...
})();

where the bracket containing the function closes before it is called. Both seem to be exactly the same, so I just wondered if there could be any kind of performance difference?

+5
source share

All Articles