title: Why does changes in child object get reflected in parent object?
body: <p>I am facing problems while creating another reference of a parent object list and making changes in it.eg</p>
  
  <pre><code>var cars = new Array();
  
  var addCar = function(name,model) {
      this.name = name;
      this.model = model;
  }
  
  var car1 = new addCar("indica", "v2");
  var car2 = new addCar("swift", "DLX");
  var car1 = new addCar("innova", "HX");
  
  cars.push(car1);
  cars.push(car2);
  cars.push(car3);
  </code></pre>
  
  <p>Now if we copy cars object in another object in fresh object and make changes in child object. The changes get reflected in the cars list array.</p>