More people


#1


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


SyntaxError: missing variable name


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

console.log(contacts[1]).phoneNumber);


#2

undefined
Oops, try again. Make sure that mary is the second object in contacts

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

console.log(contacts[1].phoneNumber);


#3

your contacts array, why do you store string in the array? Why not store bob and mary objects instead


#4

Thank you, it worked!


#5