I'm a newbie in javascript and I'm wondering why bob.age is still 30 while age is 50 when I called it. I already set age to 50 in setAge that assigned 50 to this.age, which I know is a reference to bob.age, so age and bob.age should have the same value.

// here we define our method using "this", before we even introduce bob
var setAge = function (newAge) {
this.age = newAge;
};
// now we make bob
var bob = new Object();
bob.age = 30;
// and down here we just use the method we already made
// change bob's age to 50 here
bob.setAge = setAge(50);