What's next?


#1


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

missing before statement

var bob = {
    firstName: "Bob",
    lastName: "Jones",
    phoneNumber: "(650) 777-7777",
    email: "bob.jones@example.com"
};

var mary = {
    name: "Mary Johnson",
    phoneNumber: "(650) 888 - 8888",
    email: "mary.johnson@example.com"
};

var arrayName[contacts]
var myArray = ["bob", "mary"];
console.log("(650) 888 - 8888");
};


#2

The correct form of the first line is,

var contacts = [];

Translating to the next line,

contacts.push(bob, mary);

Or, as instructed write it in one line...

contacts = [bob, mary]

It's important to not wrap quotes on the variable names. They are not strings, but references.


#3

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