I am making a game with 2 arrays but one array changes when I don't want it to. Example from the console in browser:
A=[1,2,3,4,5]
B=[6,7,8,9,10]
A=B
A.push(11)
A =[6, 7, 8, 9, 10, 11]
B =[6, 7, 8, 9, 10, 11]
the A is fine but is there a way to make the B stay [6,7,8,9,10]