Difference between call() function and calling implicit constructor of inherited class
<p>What is the difference between calling a function call(), and calling implicit constructor of a inherited class?</p>

<p>Example1:</p>

<pre><code>function DepthRectangle(w, h, d){
    Rectangle.call(this, w, h);
    this.depth = d;
}
</code></pre>

<p>Example2:</p>

<pre><code>function DepthRectangle(w, h, d){
    this = new Rectangle(w, h);
    this.depth = d;
}
</code></pre>

<p>Constructor of Rectangle:</p>

<pre><code>function Rectangle(w, h){
    this.width = w;
    this.height = h;
}
</code></pre>
