17/33. Please help


#1

// 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;
bob.setAge = setAge;

// make susan here, and first give her an age of 25
var susan = new Object();
susan.age = 25;
susan.setAge = setAge;

// here, update Susan's age to 35 using the method
susan.age = 35;
susan.setAge = setAge(35);

Can someone advise me on what I'm missing?

Thanks.


#2

Per what I see you need to review how you set Sysan to 35!

Try this out:

susan.setAge(35);

instead of:

susan.age = 35;
susan.setAge = setAge(35);

Best, Mattia