What is wroung?


#1


29. Try it Out!

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

keep getting "Oops, try again. It looks like your olderAge function fails when the first Person is older! It should return the age of the older person "


Replace this line with your code.


#2

Hi instaed of

return alice.age
and
return billy.age

you shoul return person1.age or person2.age


#3

thanks
מ: seth Banfoui ‏[codecademy@discoursemail.com]‏
‏‏נשלח: יום שני 29 אוגוסט 2016 17:43
‏‏אל: Pavel Levitin
‏‏נושא: [Codecademy Discuss] [JavaScript/13. Introduction to Objects I] What is wroung?

[X] wizmarcohttps://discuss.codecademy.com/users/wizmarco Help Desk (gold)
August 29

Hi instaed of

return alice.age
and
return billy.age

you shoul return person1.age or person2.age

Visit Topichttps://discuss.codecademy.com/t/what-is-wroung/57238/2 or reply to this email to respond.

To unsubscribe from these emails, click herehttps://discuss.codecademy.com/email/unsubscribe/a95a9dd7316ca796cdf931d3da58e6caa00f5f9de7a7f29782f3d462e6d15cac.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.