I ran a script through JSLint and it picked out a specific issue with parenthesis placement.
I had written:
(function(){})();
And it was suggested to use:
(function(){}());
I'm curious as to what bugs or issues this particular change fixes. I would assume that because JSLint picked it out as an issue, there must be an issue for someone.
Expanded forms:
(
function (p) {
...code...
}
)(param); //parameters after the parens
-vs-
(
function (p) {
...code...
}(param) //parameters within the parens
);