What is wrong with below code please help


var friends=new Object();
friends.bill = new Object();
friends.steve = new Object();

friends.bill.firstName = "Bill";
friends.bill.lastName = "Gates";
friends.bill.number = "(206) 555-5555";
friends.bill.address= ['One Microsoft Way','Los Angelos','NY','65052'];

friends.steve.firstName = "Steve";
friends.steve.lastName = "Jobs";
friends.steve.number = "(206) 555-5555";
friends.steve.address= ['One Microsoft Way','Redmond','WA','98052'];

var list = function(friends){
for(var firstName in freinds){
console.log(firstName+": "+friends[firstName]);


Hi try to just print firstName like that



hi thanks for the suggestion yes i tried but im getting the below error

"Oops, try again. Did you create a function called list?"

I'm going on getting this error


Hi try this

var list = function(friends){
for(var firstName in freinds){


same error throws again
please do verify the below link



Try that

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


wow superb at last it works thank you very much