var a = {x:1,y:2}; var b; // assign a's object reference to b b = a; // assign a new object reference to a a = {x:3,y:4}; // b still has the object reference to {x:1,y:2}; console.log("x,y:" + b.x + "," + b.y);