I am so confused. I want to take a and copy its value to b. But when I edit a or b, I do not want it to also edit b and a. Here is an example. When I add 'a' to the a variable, b should still remain as ['b', 'c'] but the console logs says it is ['a', 'b', 'c']. What am I doing wrong?
var a = ['b', 'c'];
var b = a;
a.unshift('a');
console.log(a)
console.log(b)