6. List em' all! (nothing works)


The error message reads as "Oops, try again. It looks like your list function isn't printing the right output."
Which is right because all I'm getting back in the console is 'steve'.

var friends = {
    bill: {
        firstName: "Bill",
        lastName: "Gates",
        number: "(206) 555-5555",
        address: ['One Microsoft Way','Redmond','WA','98052']

    steve: {
        firstName: "Steve",
        lastName: "Jobs",
        number: "(206) 666-5555",
        address: ['Twenty-Two Apple Ave','Mactown','CA','87635']

var list = function(friends) {
    for (var firstname in friends);


Hi this line remove the ; at the end

for (var firstname in friends); <--

You can read more about it here


Thank you very much, I probably wouldn't have figured that out on my own.


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