title: How to inherit two parent object to a child object, but the argument of the 2nd inherited object is the 1st inherited object
body: <p>In Javascript, I was searching for how to inherit an object when constructor has arguments. And i found the answer for this question.</p>
  
  <p>Now I need to inherit two parent object to a child object, but the argument of the 2nd inherited object is the first inherited object. How to do this?</p>
  
  <p>In the difficult way:</p>
  
  <pre><code>function ChildObj() { 
      this.Parent1 = new ParentObj1 ( arguments ); 
      this.Parent2 = new ParentObj2 ( this.Parent1);
  }
  </code></pre>
  
  <p>But how to do it in this way:</p>
  
  <pre><code>function ChildObj() { 
     Parent1Obj.call ( this, arguments ) ;
     Parent2Obj.call( this, &lt;&lt;-- how to indicate Parent1Obj as argument --&gt;&gt; ) ;
  }
  </code></pre>