var t1 = [2,4,7,9];
var t2 = t1;
console.warn(t2); // [2, 4, 7, 9]
t1[1] = 7;
console.warn(t2); // [2, 7, 7, 9]
Why? :) I can't understand. t2 is inheits t1?
var t1 = [2,4,7,9];
var t2 = t1;
console.warn(t2); // [2, 4, 7, 9]
t1[1] = 7;
console.warn(t2); // [2, 7, 7, 9]
Why? :) I can't understand. t2 is inheits t1?