Try It Out! Well I defiantly tried


I get the error SyntaxError: Unexpected token however I am not even sure I have set up my function and all correctly so some help would sure be appreciated :smiley:

var alice = new Person("Alice", 30);
var billy = new Person("Billy", 25);
function olderAge(alice, bob);
if(person1.age > person2.age) {
    return person1.age; 
} else {
    return person2.age; }
console.log("The older person is " + olderAge(alice, billy));


the start and end of a function are marked in js by curly brackets ({}), i don't see these in your code? also the semi-colon at your function delcartion is wrong, remove the semi-colon


Ah thank you! I also had to fix the person1 and person2 to alice and bob but those grammarical/puncuation errors will be the death of me xD