(7/8 )Oops, try again. It looks like your search function doesn't return contact information for Steve


#1

var friends = new Object();
friends.bill = new Object();
friends.bill.firstName = 'bill';
friends.bill.lastName= 'gates';
friends.bill.number= "1234567891";
friends.bill.address = ['One Microsoft Way' , 'Redmon' , 'WA' , '98052'];
friends.steve = new Object();
friends.steve.firstName= 'steve';
friends.steve.lastName= 'jobs';
friends.steve.number= "9876543219";
friends.steve.address = ['One Apple' , 'Mountain View', 'CA' , 'USA'];
var list=function(blob) {
for(var key in friends)
{
console.log(key);
}
}

var search = function(name) {
for(var key in friends) {
if(friends[key].firstName === name) {
console.log(friends[key]);
return friends[key];
}
}
};

search('steve');


#2

before

search('steve');

you need

list(friends);

so it should look like

list(friends);
search('steve');

#3

@vinay_badhan21 you have Steve stored in the object as "steve" but the program is looking for "Steve". Make the S capitalized everywhere you have "steve" and it should work.