Is console.log a regular object?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8773579/if-javascript-has-first-class-functions-why-doesnt-this-work">If Javascript has first-class functions, why doesn’t this work?</a>  </p>
</blockquote>



<p>In Chrome, the following produces <em>Uncaught TypeError: Illegal invocation</em>:</p>

<pre><code>g = console.log;
g(1);
</code></pre>

<p>Why does this happen, and why can't I treat <code>console.log</code> like a regular object?</p>
