3. Isn't this corrct


#1


isn't this correct? it says- It looks like your function didn't log "Bob Jones" to the console. Did you remember to call your function on bob? but on my console it prints both names.

Replace this line with your code. 
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

You've got more that a single space here:

Make sure it is just one.

console.log(person.firstName + " " + person.lastName);

I hope this helps! :slight_smile:


#3

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