var a = {a: 1, b: 2};
var b = a;
b.a = 3;
In the above code, b.a becomes 3, and a.a also becomes 3.
var a = {a: 1, b: 2};
function b(objeto) {
objeto.a = 3;
}
b(a);
In the above code, the value of a.a remains 1, since I am...
asked by
28.04.2016 / 19:59