title: Get child function name in parent function method
body: <p>Function B extends A, How to get B function name in parent function A, when I call <code>parentMethod()</code> on object of B child function object.</p>
  
  <pre><code>function A() {
  
      this.parentMethod = function() {
           //alert('display B function name');
      }
  }
  
  function B() {
  
  
  }
  
  
  B.prototype = new A();
  
  var b = new B();  
  b.parentMethod();
  </code></pre>