I'm having an issue with my OOP JavaScript. If the object has an array in it and I push things in a new instance of the object it gets saved to all instances. Does anyone know what I'm doing wrong?
function Car(){}
Car.prototype.name = "";
Car.prototype.color = [];
var suv = new Car;
suv.color.push("black"); //black
var sedan = new Car;
sedan.color.push("green"); //black, green