5. Tossing in an Array - "missing } after property list"


#1


https://www.codecademy.com/courses/javascript-beginner-en-3bmfN/0/5?curriculum_id=506324b3a7dffd00020bf661


I get the error message "SyntaxError: missing } after property list" Why?


var friends= {
    bill: {
        firstName: "Bill",
        lastName: "Gates",
        number: "(206)1111",
        address: ['Straße sounso', '193923 Silicon Valley']
        }
    steve: {
        firstName: "Steve",
        lastName: "Jobs",
        number: "208248",
        address: ['Straße sabdja', '389191 Silicon Valley']
        }
};


#2

Solved, it was a comma missing after bill.

Why does it say "missing }" though? Confusing


#3

It could just be that the SCT has a limited number of error messages, and not one for the missing comma.


#4

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