2, unexpected token

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

Please can someone help me find what is wrong?


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:



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