2. More People


#1



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


Hi thx for helping
How can I create an array called contact and where would I set it up?


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"
};
console.log("mary.phoneNumber")


#2

Hi this line

console.log("mary.phoneNumber")

remove the " " around mary.phoneNumber

And

read again that instruction..
Create an array called contacts. Put bob in first (at index 0), then mary (at index 1).


#3

It says this is wrong how would I fix it?
var arrayContacts = ["bob", "mary"]


#4

now remove the " " around bob and mary because it make them strings.


#5

var arrayContacts = [bob, mary]
It is asking if declared a variable called contacts what how?


#6

sorry it should be

var contacts ...

and not

var arrayContacts ...

#7

Its ok it works thx man :relaxed: