3. Displaying People


#1


error:Oops, try again. It looks like your function didn't log "Bob Jones" to the console. Did you remember to call your function on bob?


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)
};
console.log(contacts[0]);


#2

ops i notised the mistke now, i accidently wrote console.log instead of calling the function


#3

so you are all good now?


#4

yap! Were all good, solved it after a while...


#5