Tossing In An Array: SyntaxError: Unexpected identifier


#1

Can anybody see where my syntax error is? When I cut the "bill" portion from the code, this works. Likewise, when I cut the "steve" portion of the code, this works. When I have both, this does not work. I'm not seeing the syntax error though.

var friends = {
 
    steve:{
        firstName:"Steve",
        lastName:"Jobs",
        number:"(555) 319-7531",
        address:['987 Apple Core Way', 'Some City', 'CA', '98765']
    }
    
    bill:{
        firstName:"Bill",
        lastName:"Gates",
        number:"(206) 555-5555",
        address:['One Microsoft Way', 'Redmond','WA', '98052']
    }    
    
};


#2

@dcat324,
You forgot to use the comma-, separator
to separate the steve and bill property

var = friends = {
   steve: {
   },
   bill: {
   }
};

+++ friends list and search and for-in explained.
Look here for an explanation
object
function
for-in-loop
list-function
search-function
http://www.codecademy.com/forum_questions/545275fd8c1ccc8e3e000a23#comment-5457b12c9c4e9d87cb00003f


#3

Thank you. That was indeed the missing piece. I very much appreciate your help.