Difference Between Class Properties and Function Prototype in Javascript
<p>I like to learn the difference between Class Property and Prototype in Javascript what I mean is shown in the code :</p>

<pre><code>function Rectangle(x, y) {
    this.width = x;
    this.height = y;
}

Rectangle.UNIT = new Rectangle(1, 1);

Rectangle.prototype.UNIT = new Rectangle(1, 1);
</code></pre>

<p>The thing I know is prototype is working like inherit object which means UNIT will be shown all the instances from now on but  <code>Rectangle.UNIT = new Rectangle(1, 1);</code> code doesn't do the same thing ?</p>
