List not showing up as a function


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) {


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


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


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


Thank you for helping me!


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