title: JavaScript - access array from outside of function
body: <p>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?</p>
  
  <pre><code>    // Run through user's followers
      SC.get('/users/9110252/followings',function(followings) {
  
      var userFollowings = [];
  
  
          for(i = 0; i &lt; followings.collection.length; i++) {         
  
              userFollowings.push(followings.collection[i].username);           
  
          }   
  
      });
  
      console.log(userFollowings);
  </code></pre>