2.more people


#1

what is wrong it say"Oops, try again. Did you remember to print out mary's phone number?

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

var mary= new Object();
mary.firstName= "Mary Johnson";
mary.phoneNumber= "(650) 888-8888";
mary.email= "mary.johnson@example.com";

var contacts = [bob, mary];
console.log(mary.phonNumber);


#2

This would be, mary.phoneNumber. However, the lesson would like us to use the array reference. mary is the second element in the array, so it has index, 1.

console.log(contacts[1]);

#3

@laitanop
and do not use

phonNumber


#5