I have no clue 7


here is my code i dont know whats wrong!!

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

please help me!


how old are you then ill teach you how it works


You haven't called your function.

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