5. Tossing in an array


#1



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


unexpected token


var friends = new Object();

    bill = new Object();
    var friends = {
    bill: {
        firstName: "Bill",
        lastName: "Gates",
        number: "(206) 555-5555",
        address:['One Microsoft Way','Redmond','WA','98052']
    } ,
    steve = new Object();
     steve: {
        firstName: "Steve",
        lastName: "Jobs",
        number: "(208) 555-5555",
        address:['One Microsoft Way','Redmond','CA','98052']
     } ,
    jack = new Object ();
     jack: {
        firstName: "Jaek",
        lastName: "Hil",
        number: "(999) 561-1104",
        address:['M Street','somewhere','MO','66660']
     };


#2

HI remove these lines

bill = new Object();
steve = new Object();
jack = new Object ();

then it's missing the } of the object jack


#4

Thank you so much!!!


#5

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