List 'em all! [NOT]


#1


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


SyntaxError: Unexpected end of input


var friends = {
   bill: {
       firstName: "Bill",
       lastName: "Gates",
       number: "(206) 555-5555",
       address: ['One Microsoft Way','Redmond','WA','98052']
       },
    steve: {
        firstName: "Steve",
       lastName: "Jobs",
       number: "(4080) IPAD-PRO",
        address: ['One Infinite Loop', 'Cupertino', 'CA', '95014']
        },
    eric: {
     firstName: "Eric",
       lastName: "S0meb0dy",
       number: "(800) S0ME0NE",
        address: ['One Unknown Avenue,', 'Confidential', 'TS', '00000']
        }
    }; 
    
 var list = function (friends) {
    for (var person in friends) {
        console.log(person)
    }


#2

Hi this part you didn't close the list function

 var list = function (friends) {
    for (var person in friends) {
        console.log(person)
    }
} <-- #add this }

#3

Thanks. It let me pass.


#4

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