12 steve is not defined in my code


#1



steve is not defined


var friends = {
    bill:{firstName:"bill",
          lastName:"gates",
          number:"2222222222",
          phonenumber:"010-777777",
          hobby: "golf",
          address:["korea","busan","jung-gu"]
        },
            
    steve:{firstName:"steve",
           lastsName:"jobs",
           numer: "1111111111111",
          phonenumber:"010-22222",
          hobby: "math",
          address:["korea","seoul","jung-gu"]
          }  
}

var list = function(friends){
    for(var firstName in friends){
        console.log(firstName);
        
    }
}

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


#2

steve needs to be in quotes


#3

@ericentrepreneur,
And your firstName's should be capitalized like _"Steve" and "Bill"