When i added address as object .all is not ok


#1

Tossing in an array
Let's add another property to each of our friends and set it equal to an array. Give each of your friends an address property, and break up their address into an array,

all was ok ,but i like this ,i added address. i could not pass lesson .why ?

var friends=new Object();

friends.bill=new Object();
friends.bill.firstName="Bill";
friends.bill.lastName="Gate";
friends.bill.number="3453445";
friends.bill.address=["34","avenue","washing","340013"];

friends.steve=new Object();
friends.steve.firstName="Steve";
friends.steve.lastName="Job";
friends.steve.number="23322";
friends.steve.address=["57","avenue","China","pekin","433333"];
friends.phone="5662254";

hi ,


#2

you also added a phonenumber:

friends.phone="5662254";

this causes the error, remove it


#3

thank you for your help ,for your gentleness


#4