Building an Address Book - what am I doing wrong


#1

What am I doing 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];

console.log = (mary.phoneNumber);


Building an Address Book
#2

In the console.log, try something like this:

console.log(mary.phoneNumber);