How to solve "Tossing in An Array": What does it want me to do?


#1



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


I'm not sure what the exercise is asking for. Does it want me to type the array diectly into the object? Or does it want me to generate the array via bracket or dot notation or object constructor? I've tried both and the exercise isn't accepting either. What am I doing wrong?


var friends = {

    steve: {
        firstName: "Steve",
        lastName: "Jobs",
        number: "(555) 247-8456",
        address = ['One Infinite Loop', 'Cupertino', 'CA', '90210']
    },
    
    bill: {
        firstName: "Bill",
        lastName: "Gates",
        number: "(555) 814-6937",
        address = ['One Microsoft Way', 'Redmond', 'WA', '98052']
    }
};



address = ['One Microsoft Way', 'Redmond', 'WA', '98052']


#2

The error is simple and quite common, so take a lesson from this.

address: [ ... ]

Use object literal syntax.

And do away with that last line...