title: This Javascript code returns 'Undefined'
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/a/8587945/298479">Function Arguments Passing and Return</a>  </p>
  </blockquote>
  
  
  
  <p>I need a little help with this</p>
  
  <pre><code> var foo = {
       bar: function () {
           return this.baz;
       },
       baz: 1
   };
   (function () {
       return typeof arguments[0]();
   })(foo.bar);
  </code></pre>
  
  <p>This snippet when executed returns 'undefined'
  Can someone please explain why is this so ?</p>