I have this basic for loop that iterates through a user's followers. I want to console.log the list of followers from outside of this function as I want to compare this array to another another array somewhere else. How do I do this?
// Run through user's followers
SC.get('/users/9110252/followings',function(followings) {
var userFollowings = [];
for(i = 0; i < followings.collection.length; i++) {
userFollowings.push(followings.collection[i].username);
}
});
console.log(userFollowings);