p = {x:3, y:4}; var q = p; console.log('q.x = '+ q.x); p.x = 5; console.log('q.x = '+ q.x); // why does q.x change value ?
Output: