2, unexpected token


#1

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);

Please can someone help me find what is wrong?


#2

The above is an object literal but you have statement syntax. Change the semi-colons to commas, and leave the last one off. Follow the bob syntax.

While this will work, the exercise is expecting us to use the new array reference:

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

#3

Don't tell anyone, but it's actually not expecting us to use the new array reference.