title: Overriding inherited prototype method and calling the original one inside the new one
body: <p>In the following piece of code, how can I access the <code>A.prototype.log</code> inside of <code>B.prototype.log</code>?</p>
  
  <pre><code>function A() {}
  
  A.prototype.log = function () {
      console.log("A");
  };
  
  function B() {}
  
  B.prototype = Object.create(A.prototype);
  B.prototype.constructor = B;
  
  B.prototype.log = function () {
      //call A.prototype.log here
      console.log("B");
  };
  
  var b = new B();
  b.log();
  </code></pre>
  
  <p>I know I could just write <code>A.prototype.log.call(this)</code> but I thought maybe there is a more elegant way, that lets me call it in a relative way, like "call the method 'log' of the next higher instance in the prototype chain". Is something like this possible?</p>