3. Displaying People


#1

Hey there. I'm puzzled that Codecademy is not accepting my code here. Can anyone point me in the right direction? Thank you!

Exercise: https://www.codecademy.com/en/courses/building-an-address-book/0/3?curriculum_id=506324b3a7dffd00020bf661

Error: SyntaxError: missing ) after argument list

var bob = {
    firstName: "Bob",
    lastName: "Jones",
    phoneNumber: "(650) 777-7777",
    email: "bob.jones@example.com"
};

var mary = {
    firstName: "Mary",
    lastName: "Johnson",
    phoneNumber: "(650) 888-8888",
    email: "mary.johnson@example.com"
};

var contacts = [bob, mary];

// printPerson added here
var printPerson = function (person) {
    console.log(person.firstName + " " person.lastName);
};
printPerson(contacts[0]);
printPerson(contacts[1]);


#2

Nevermind - I forgot the + after the " " in this context:

person.firstName + " " + person.lastName