5. Tossing in an array


#1



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


Oops, try again. There was a problem with your syntax.
The syntax looks fine to me, I checked and I still can't get it right. Please help.

var friends = {
    bill: {
        firstName: "Bill",
        lastName: "Gates",
        number: "123 456 789",
        address: ["One", "Microsoft Way", "Richville"]
    }
    steve: {
        firstName: "Steve",
        lastName: "Jobs",
        number: "987 654 321",
        address: ["Two", "Applestreet", "Deadville"]
    }
}


#2

you need to separate the different objects with a comma:

bill: {
        firstName: "Bill",
        lastName: "Gates",
        number: "123 456 789",
        address: ["One", "Microsoft Way", "Richville"]
    } /* missing , */
    steve: {

see comment (missing ,)


#3

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