let's say I have two javascript arrays, like this:
arrA = [1,2,3]
arrB = [4,5,6]
Is there a way I can reference them with different variable names down then road? If I do this:
arrC = arrA
arrD = arrB
it makes copies of the initial arrays, instead of making a pointer/reference to them. So, if I mess with the value of arrC
, arrA
isn't updated. Is there a way to get around this?
Thanks.