6. List 'em all! can someone explain?


#1


6. List 'em all!

can someone explain to me what this code is about? I'm kinda confused..

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


#2

its a function which loops over all properties of the friends objects, and then print the property/keys


#3

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