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?
var firstArray = ["Curly", "Larry", "Moe"]
var secondArray = firstArray;
var thirdArray = firstArray;
alert("This is first array " + firstArray + "<br>");
secondArray.shift();
alert("This is first array " + firstArray + "<br>");
alert("This is second array " + secondArray + "<br>");
alert("This is third array " + thirdArray + "<br>");