List 'em all!


#1


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


SyntaxError: Expected ':'


var friends = {
    bill: {
        firstName:"Bill",
        lastName:"",
        number:" ",
        address: []
        },
    steve: {
        firstName:"steve",
        lastName:"",
        number:" ",
        address: []
        },
    var list = function (friends){
        for (var key in friends){
            console.log(key);
            }
        }
    };


#2

list should be a function after friends object, not a method which is part of friends object


#3

Thanks for your help!


#5