3 Displaying people


#1

My code works just wondering cause it doesn't actually print out to the console is it wrong??

`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];

var printPerson = function(person){
person.firstName = contacts.firstName;
person.lastName = contacts.lastName;
}

printPerson(contacts[0]);`


#2

Do you recall how to print something to console?
Does your code contain anything like that?

Your code works when it matches your expectations, so this would mean that your code is currently not working.


#3

Thank you very much mate!