29 - unsure of where I went wrong


#1

var olderAge = function(person1,person2) {
if person1 > person2
return person1;
else
return person2;
};

This is my olderAge function. It's saying 'unexpected identifier' and I don't know what it's referring to.


#2

Hi your if condition should be inside ()

if (condition)
    #do something
else 
    #do something

then you want to check the age so inisde your if condition you should put person1.age and person2.age the same in the return statement