I am currently building out my Twitch API project and I ran into an issue while looping over an array to make AJAX calls.
I created an array of channel names that I want to make a query on. The array is named streamArray. The for loop works for the purpose of making the ajax call (url+streamArray[i]), but when I try to $.append the elements to the DOM streamArray[i] is undefined.
How do I make it so that the object of streamArray’s current iteration is defined?
Please refer to the JS section of my codepen below. The problem section is commented with ###FREE CODE CAMP QUESTION STARTS HERE.
Thanks so much