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?
source
share