title: Why this Javascript Object not change..?
body: <p>I copy the object and change the property, </p>
  
  <p>it seems the property has been change, but the object not change:</p>
  
  <pre><code>var partCp = myDoorObj['part'][0];
  for (var i = 0; i &lt; doorCount; i++) {
  
      partCp['var']['no'] = i + 1;
      partCp['var']['_name'] = 'door' + (i + 1);
  
      console.log(partCp);
      console.log(partCp['var']['_name']);
  
      myDoorObj['part'].push(partCp);
  
  }
  </code></pre>
  
  <p>with the console log:</p>
  
  <p><img src="https://i.stack.imgur.com/TfE8w.png" alt="enter image description here"></p>
  
  <p><code>partCp['var']['_name']</code> has been change,  but <code>partCp</code> object in the console are same..</p>
  
  <p>so whats the problem??</p>