array1
that doesn't affect array2
?script.js
when the page loads until the window is refreshed or closed.)array1
to a new variable array2
, all we do is copy that reference to the array into a new variable. That reference still refers to the same squares.array2
variable references the values from the original variable.count
into the new variable count2
.array1
reference is copied into the new variable array2
.