Why does jQuery file have two parameters in its function but receives only one parameter
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2716069/how-does-this-javascript-jquery-syntax-work-function-window-undefined">How does this JavaScript/JQuery Syntax work: (function( window, undefined ) { })(window)?</a>  </p>
</blockquote>



<p>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:</p>

<pre><code>(function( window, undefined ) {

...

}(window));
</code></pre>

<p>Why does it have in the function params <code>undefined</code> when no parameter is being passed to it when it is executed?</p>
