Question #7 Can someone point out my error?


#1

Here is my code:

var friends = {};
friends.bill = {
firstName: "Bill",
lastName: "hines",
number: "(626) 602-5823",
address: ['14901 New Vista Place','Hacienda Heights','CA','91745']
};
friends.steve = {
firstName: "Steve",
lastName: "jobs",
number: "(323) 225-5997",
address: ['2091 Stonehurst Drive','Rialto','CA','90033']
};
var list = function (friends) {
for (var firstName in Friends) {
console.log(firstName)
}
};

The error I'm getting is "Did you create a function called search?"

Would appreciate any help, thanks!


#4

create a variable called search and search for steve:
search("steve");