title: JavaScript function arguments for filter function
body: <pre><code>numbers = [1,2,3,4,5,4,3,2,1]; 
  var filterResult = numbers.filter(function(i){
      return (i &gt; 2);
  });       
  </code></pre>
  
  <p>I don't understand how this works.  if I omit the i as a function argument it breaks the function but the i isn't tied to anything so why does it need to be there?</p>