p = {x:3, y:4}; p.x = 5; // sets the value of x to 5; console.log('p.x = '+ p.x); var a = p.x; // creates a value type a // and sets its value to p.x ie 5 console.log('a = '+ a);
Output: