More People, Problem solved


#1



https://www.codecademy.com/courses/building-an-address-book/0/2?curriculum_id=506324b3a7dffd00020bf661#

I print out mary's phone number just as they asked, yet it still won't let me proceed even when mary is the second object in my array. I'm stumped.


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 myArray = [bob, mary];
console.log(myArray[1].phoneNumber)


#2

Nevermind, I realized the program wouldn't let me move forward because i didn't save the array under a var named "contacts". Problem solved (: