I’m working on the Twitch streaming app, and I’m having an issue pulling the data from Twitch. I’m making my Ajax call in a for loop (so I can iterate through several different streamers), but the loop isn’t waiting for the data to return before moving on to the next iteration.
Here’s an image of my issue:
In the above, I’m console logging test prints of the for loop iterator. The loop is pushing through and not getting data back until the seventh call.
Any idea how I can make this work?