Something is wrong


#1

I'm also getting the error asking if a function named list is created despite there being a function named list declared in the code. am I missing something? my code is as follows
var friends = new Object();
friends.bill =
{
firstName: "Bill",
lastName: "Gates",
number: "(206) 555-5555",
address: ['One Microsoft Way','Redmond, WA', '98052']
};
friends.steve =
{
firstName: "Steve",
lastName: "Jobs",
number: "(714) 555-5555",
address: ['One Microsoft Way','Redmond, WA', '98052']
};

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


It tells me it's wrong but I don't think it is
#2

please read the guidelines, to prevent clutter, its best you make a new topic. I did it for you now, but next time please keep it in mind

object is just a general term we use to describe objects (friends, bill and steve are all objects), but the word object shouldn't occur in your code


#3

Thank you. I'll reread the guidelines.


#4

if you need more help, post an updated version of your code


#5

I linked to Roboto but it keeps on asking if I did and I did.


#6

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