I have no clue 7


#1

here is my code i dont know whats wrong!!

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

please help me!


#2

how old are you then ill teach you how it works


#3

You haven't called your function.

Try adding this:search("Bill"); - or whatever the names you have.