Twitch Streamers Loop!

This is just a very rough draft of my Twitch streamers app. Can anyone please suggest me a way to display these usernames once? Probably something wrong with the looping. I appreciate your help!
This is the link

Your problem isn’t with the looping, but with the newHTML array you are building. Every time one of the buttons is clicked and you call the API, you are pushing the results onto the already existing newHTML array without clearing the array first. I hope that helps!

1 Like