title: javascript arrays change together
body: <p>Created second array = to first array and then performed 'shift' on second array and first array was affected also.  See code below.  I am expecting the secondArray to contain Larry and Moe after the shift and the firstArray to have the original three elements.  After the shift, both arrays only have Larry and Moe as elements?</p>
  
  <pre><code>var firstArray = ["Curly", "Larry", "Moe"]
  var secondArray = firstArray;
  var thirdArray = firstArray;
  alert("This is first array " + firstArray + "&lt;br&gt;");
  secondArray.shift();
  alert("This is first array " + firstArray + "&lt;br&gt;");
  alert("This is second array " + secondArray + "&lt;br&gt;");
  alert("This is third array " + thirdArray + "&lt;br&gt;");
  </code></pre>