title: How is the window property console different?
body: <p>When I open my chrome console and type <code>clear()</code> how is <code>window.console.clear()</code> invoked even though <code>this</code> is in the context of window? </p>
  
  <p>and how does assigning a method to console is not working when invoked directly like <code>console()</code> ?</p>
  
  <pre><code>this.console.clear2 = function(){this.clear()}
  clear2(); //ReferenceError: clear2 is not defined
  this.console.clear2() //works fine
  </code></pre>
  
  <p>what's happening in these cases ?</p>