Help with my contact list? Where is the expected ;?


SyntaxError: Expected '}'

var friends = {
    bill: {
        firstName: 'Bill',
        lastName: "a'Bong",
        number: '(850) 333-3333'
    steve: {
        firstName: 'Steve',
        lastName: 'Alicious',
        number:'(123) 456-7891'


Sorry, it accidently sent early.

What I was going to say was where is this "unexpected end bracket"? I can't find a place. The two friends have end brackets, and so does the whole variable, so what am I missing?


Not missing, but unexpected. The very last brace is a stray.


Oh yeah. I forgot about that. When it said "expected }" I added one just to see if I was missing something. However, it is still expecting a }.


There is a comma missing after the first object in friends.


Thank you very much!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.