29 - unsure of where I went wrong


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

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


Hi your if condition should be inside ()

if (condition)
    #do something
    #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