6. contact list


#1

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

SyntaxError: Expected '}'

var friends = {
    bill: {
        firstName: "Bill",
        lastName: "Gates",
        number: (207) 555-5555,
        address: ["Windows", "Ohio"]
        },
    steve: {
        firstName: "Steve",
        lastName: "Jobs",
        number: (206) 555-5555,
        address: ["s6enohPi", "Texas"]
    }
};

#2

Put quotation marks around the phone numbers.


#3

Thank you very much sir, it worked now :slight_smile:


#4

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