2. More People



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"


Hi this line


remove the " " around mary.phoneNumber


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


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


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


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


sorry it should be

var contacts ...

and not

var arrayContacts ...


Its ok it works thx man :relaxed: