how come every time you make a change to one reference of a array it does not make a change on another either though both point to the same object.
Example:
myArray = new Array(5,5,5);
Array2 = new Array(7,7,7);
alert(myArray) // still equals 5,5,5,`
That’s what’s meant by instances.
Arrayis a constructor. You create an instance by using the keywordnew. So, usingvar myArr = new Array(5,5,5)the variablemyArris a reference to an instance created (‘constructed’) by theArrayconstructor.In the case of Strings, Arrays and Objects using literals creates instances too, by the way: