7 Search for a friend. Unexpected Identifier


#1

I keep getting the unexpected identifier warning, yet I have basically copied the instructions until now and it has worked up until now.
var friends = {
bill: {
firstName: 'Bill',
lastName: 'Pickle',
number: '(123) 911-1337',
address: ['123 Sesame Street', 'New York', 'NY']
}
steve: {
firstName: 'Steve',
lastName: 'Hawk',
number: '(314) 159-2653',
address: ['314 Pi Street', 'Bakersville', 'CA']
}
};
var list = function (friends){
for(var people in friends){
console.log(people);
}
};
var search = function(name){
for(var key in friends){
if(friends[key].firstName === name){
console.log(friends[key]);
return friends[key];
}
}
};


#2

Ah, I forgot to put a comma between bill and steve, how was it working before?