1 var obj1={x:5}; 2 var obj2=obj1; 3 obj1.a=obj1={x:6}; 4 console.log(obj1.a); 5 console.log(obj2.a);