Help with 6/8, not sure what is going on


#1

this code prints out the contacts that i want but i still get an error from codec saying "Oops, try again. It looks like your list function isn't printing the right output."
but it's printing the values that i'm looking for. i don't know what i'm doing wrong. sorry to be a pain.

var friends= new Object();
friends['Sam']= {
firstName:"Samantha",
lastName:"davis",
number:"252-123-4459",
address: ['330 eastern ave', 'rocky mount', 'nc', '27801']
};

     friends[' David']= {
firstName:"David",
lastName:"Smith",
number:"252-987-2564",
address:['327 rose ave', 'rocky mount', 'nc', '27801']
};
friends['Bill']= {
    firstName:"Bill",
    lastName:"Johnson",
    number:"919-487-2521",
    address:['1701 fayetteville st', 'durham', 'nc', '27707']
    };
   friends ['Steve']= {
        firstName:"Steve",
        lastName:"Doyle",
        number:"336-412-617",
        address:['1401 e cornwalis', 'durham', 'nc', '27713']
        };

var list=function(info){
for(i=0; i

    }

};

console.log(friends['Bill']);
console.log(friends['Steve']);


#2

i think part of my code was cut off. in the for loop i put "for(i=o; i\middle part was empty
}


#3

This is right code...definitily working
var friends =
{
bill :{
firstName : "Bill",
lastName : "Gates",
number : 522-48678 ,
address : ['One microsoft','California','USA']
},
steve :{
firstName: "Steve",
lastName: "Jobs",
number : 522-85742,
address : ['Apple','California','USA ']
}
};
var list = function(friends){
for(var bill in friends){
console.log(bill);
}
};
var list = function(friends){
for(var steve in friends){
console.log(steve);
}
};


#4

Little trick to avoid your code being truncated : insert spaces in your code on each side of the ">" sign (here in you 'for' loop) :

for(i=0; i > 3 ; i++)