title: Multiple inheritance console output
body: <p>I am using below code. I'm getting wrong output console with my code. Right now i am getting "this is aB" but i required constructor related output on my output console. Like "this is aA" for first, "this is aB" for second, "this is aC" for third console.</p>
  
  <pre><code>function A () {
    this.name = "A";
  }
  
  A.prototype.a = function () {
    console.log("this is a"+this.name);
  }
  
  function B () {
    this.name = "B";
  }
  
  B.prototype.b = function () {
    console.log("this is b"+this.name);
  }
  
  function C() {
     this.name = "C";
  
      A.call(this);
      B.call(this);
  }
  
  C.prototype = Object.assign({}, A.prototype, B.prototype);
  C.prototype.constructor = C;
  
  C.prototype.c = function () {
    console.log("this is c"+this.name);
  }
  
  var x = new C();
  
  x.a(); //this is aB
  x.b(); //this is bB
  x.c(); //this is cB
  </code></pre>