Hi! It's another person who'd like some help with the Contact List



The only error message I'm getting here is that "It looks like your search function doesn't return contact information for Steve." I don't quite understand the for/in loop, so maybe I'm just making some rookie mistake. Can anybody explain what I've screwed up to me?

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


It looks like you'd want to return that friends object in the array:

return friends[number];

If we return number all we get is the index the for loop is on.



Have a close look at


AND what @levibarker wrote


Thank you very much!