Lesson 7


#1

Hi...what's wrong here? Could anyone help me? I'm sitting on this so long...thanks

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


#2

Close the brackets with ] here: