title: trying to understand javascript Function.prototype
body: <p>I trying to understand this piece of code</p>
  
  <pre><code>Function.prototype.method = function (name, fn) {
      this.prototype[name] = fn;
      return this;
  };
  </code></pre>
  
  <p>what does "this" refering to in the function body ?
  Is it refering to <code>Function.prototype</code> ?
  Is it trying to add a member to
  <code>Function.prototype.prototype</code> , namely <code>Function.prototype.prototype[name]</code> ?</p>