I have some line of code that I don't fully understand. I am looking through objects in an api and was wondering what is the purpose of the [i] in d2.follows[i].user.display_name if the code is:
$.getJSON(followerURL, function(d2){
for(var i=0; i<d2.follows.length; i++){
var displayName = d2.follows[i].user.display_name;
following.push(displayName);
I'm searching through object to find the number of followers a channel has. is Here is an image of the object I would greatly appreciate an explanation of this block of code.