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



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']


Solved, it was a comma missing after bill.

Why does it say "missing }" though? Confusing


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


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