“It looks like your search function doesn’t return contact information for Steve”


#1



var friends = {
    bill: {
     firstName: 'Bill',
     lastName: 'Gates',
     number:'(333-444-444)',
     address: ['Redmond','WA']
        },
    steve: {
        firstName: 'Steve',
        lastName: 'Jobs',
        number: '(452-484-090)',
        address: ['Los Angles','CA']
        },
    jack: {
        firstName: 'Jack',
        lastName: 'Black', 
        number: '(143-567-985)',
        address: ['NY','NYC']
        },
    jrrt: {
        firstName: 'Jon',
        lastName: 'Tolkien',
        number: '(447-576-983)',
        address: ['England', 'Cambrige']
        },
    james: {
        firstName: 'James',
        lastName: 'Neat',
        number: '(214-385-812)',
        address: ['FL','Tampa']
        }
    }
 var list = function(friends) {
  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]);
    }
  }
};


#2

Hi you should call you function search() with the name of "Steve"


#3

It looks like you're missing a return statement.