I am wondering why if I run this in JS, it will create new reference to the array, after I change its value:

```
var array = ["1","2","3"];
var copyOfArray = array;              
console.log(copyOfArray);  // ["1", "2", "3"]
var secondArray = ["2","3","4"];
array = secondArray;
console.log(array); //["2","3","4"]
console.log(copyOfArray); //["1", "2", "3"]

```

Why is reference to array not updated?