I can't copy the array.
var Mycollection = new Array("James", "John", "Mary");
var Mycollection2 = Mycollection;
Any change made in the first array is also taken in the second.
Mycollection.pop();
console.log(Mycollection.toString()) // ["James", "John"]
console.log(Mycollection2.toString())// ["James", "John"]
However, this does not occur when I use variables of text type.