Twitch Streamers Loop!

Twitch Streamers Loop!
0

#1

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
https://codepen.io/cmtran/pen/QgXbWK?editors=1111


#2

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!