How to change Class's Prototype in ES6
<p>Following is my Class, Its prototype vale is not getting changed, (I am working on the Chrome console)</p>

<pre class="lang-js prettyprint-override"><code>class Rectangle {
    constructor(length, width) {
        this.length = length;
        this.width = width;
    }

    getArea() {
        return this.length * this.width;
    }

    static create(length, width) {
        return new Rectangle(length, width);
    }
}
</code></pre>



<p>and I am Changing the prototype of the Class to null</p>

<pre class="lang-js prettyprint-override"><code>Rectangle.prototype= null
</code></pre>



<p>When I try to access the changed Prototype, the value remains the same "Object" with 'getArea' prototype property of Rectangle</p>

<p>But in ES5 the prototype value is changed.</p>