Here is an example of passing an object as a parameter to a function:
function foo(obj) { obj.x = 10; } var p = { x: 20, y: 70 }; foo(p); // p.x ?
What is the value of p.x after the call foo(p)?
p.x
foo(p)