List not showing up as a function


#1


it wont read the variable list as a function. The text is blue and my error code says "did you create a function called list". why?
Ive gotten this far with no help lol but now i cant figure out whats wrong with it. SMH...

var friends = {
    steve: {
        firstname: "Steve",
        lastName: "Stevens",
        number: "301 429 0115",
        address: []
        },
    bill: {
        firstName: "Bill",
        lastName: "Williams",
        nmber: "301 429 0116",
        address: []
        }
};

var list = function(friends) {
    for (var name in steve) {
        console.log(steve.name);
    }


#2

This is way off. Suggest go back over the lessons and instructions from the beginning.


#3

thats not helpful. Obviously I made it this far, so no need to go back to the beginning.
but I figured it out.


#4

Then you should know how to use a variable in a loop.


#5

Thank you for helping me!


#6

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