Oops! doesn't return steve


#1


https://www.codecademy.com/courses/javascript-beginner-en-3bmfN/0/7?curriculum_id=506324b3a7dffd00020bf661#


hi,
I have an error which says "Oops, try again. It looks like your search function doesn't return contact information for Steve."

what is the problem???


var friends = {};
friends.bill = {
    firstName : "Bill",
    lastName : "Billy",
    number : "6515646",
    address : ["dsf","fd","34","213"]
}
friends.steve = {
    firstName : "steve",
    lastName : "stv",
    number : "6513446",
    address : ["dsf","fd","43","413"]
}
var list = function (f){
    for (var t in f){    
    console.log(t);
    }
};
list(friends);
var search = function (name){
    for (var c in friends){
        if(friends[c].firstName === name){
            console.log(friends[c]);
            return friends[c];
        }
    }
};
search("steve");


#2

here:

firstName : "steve"

firstnames should have an uppercase first letter (Steve)


#3

thanks a lot
it worked...


#4