Possible Duplicate:
How does this JavaScript/JQuery Syntax work: (function( window, undefined ) { })(window)?
I am trying to learn about js scopes and anonymous functions. I have tried to read the jQuery.js file and it looks like this:
(function( window, undefined ) {
...
}(window));
Why does it have in the function params undefined
when no parameter is being passed to it when it is executed?