Overwriting and Extending Prototype
<p>I'm not sure why when I overwrite the prototype below with an object(Gadget.prototype = {
price: 100;}, only new instances of Gadget(theGadget) have access to the new properties.</p>

<p>But when extended(Gadget.prototype.price = 100) All instances have access.</p>

<pre><code>function Gadget(name, color) {
this.name = name;
this.color = color;
this.brand = "Sony";
this.whatAreYou = function(){
return 'I am a ' + this.color + ' ' + this.name;
    }
}

myGadget = new Gadget();

myGadget.brand;


//Gadget.prototype.price = 100;

Gadget.prototype = {
 price: 100,
 rating: 3,

};

myGadget.price;
theGadget = new Gadget();
theGadget.price
</code></pre>
