6/8 what does it want me to do here?


#1

var objectName = {friends};
var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "(206) 555-5555",
address: ['One Microsoft Way','Redmond','WA','98052']
},
steve: {
firstName: "Steve",
lastName: "Jobs",
number: "(408) 555-5555",
address: ['1 Infinite Loop','Cupertino','CA','95014']
}
};


#2

Hi @cssmaster90864,

There seems to be a lot of problems in your code, mostly because you are confused by the directions.:smile:

So, I'll tell you what you need to do:

You have to create a function called list.

So, like, make a function called list!

It also has to have a parameter of something

(can be random)

Now, you have to make a for/in loop.

Remember, for (____ in ____){}

Now console.log the thing inside the for / in loop.

for(___This ONE__in _____)

Got it? Hope so. :smile:

Also, there's a few problems in your original code, including:

FYI: the variable objectName is not needed.

FYI2: the friends variable has to be closed off, with the names not included.

Hope it helped!:smiley: