6. List 'em all! Oops, try again. Did you create a function called list?


#1



`

var list = function(friends)
{
for(var key in object){console.log(firstName);}};

I'm getting error: Oops, try again.
Did you create a function called list?

why? :(((( please, help!


#2

Your function looks off.

You should be looping for in the friends object created and then console.log that key

for (var key in friends)
{
    console.log (key);
}
};

You then could call friends on the list.

list(friends);

Hope this helps! :slight_smile:


#3

thanks! didn;t really understand this function before, but now I get it!


#4

You're welcome.

I'm glad you do now.

Have fun coding! :slight_smile:


#5

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