2. More People


#1


2. More People
I don't get it. What's wrong?


Syntax Error: 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];
console.log(contacts[1].phoneNumber);


#2

Problem is here:

var contacts [bob, mary];

You forgot to use assign operator =.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.