17, so you need susan.setage = setage;?


#1

var setAge = function (newAge) {
this.age = newAge;
};
var bob = new Object();
bob.age = 30;
bob.setAge = setAge;
var susan = new Object();
susan.age = 25;
susan.setAge(35);

^ i just found it weird that this will "not be a function" until susan.setAge = setAge; is added


#2

Hi first you should put susan.setAge = setAge and then you should set Susan to 35 with

susan.setAge(35)

#3

I was thinking along similar lines. If we have already defined setAge function and have applied it to an age property that can be contained in any of our objects, why the need to create the additional property of susan.setAge = setAge?