# Twitch tv project, https://codepen.io/Kristians/pen/wpZKMG?editors=1010

**URL:** <https://forum.freecodecamp.org/t/twitch-tv-project-https-codepen-io-kristians-pen-wpzkmg-editors-1010/171451>\
**Category:** General\
**Created:** [January 28, 2018, 9:39pm UTC](https://forum.freecodecamp.org/t/twitch-tv-project-https-codepen-io-kristians-pen-wpzkmg-editors-1010/171451 "2018-01-28T21:39:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristian209](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kristian209/32/92567_2.png) [@Kristian209](https://forum.freecodecamp.org/u/Kristian209)\
**Post date:** [January 28, 2018, 9:39pm UTC](https://forum.freecodecamp.org/t/twitch-tv-project-https-codepen-io-kristians-pen-wpzkmg-editors-1010/171451/1 "2018-01-28T21:39:26Z")

</div>

I’ve been stuck trying to solve this problem for a few days now, can’t find anything online to help me. Would really appreciate help. If I take the second for loop out, all of the twitchStreamers[i] are undefined and returns offline. Please help!

> **[Twitch.tv App](https://codepen.io/Kristians/pen/wpZKMG?editors=1010)**
>
> ...

---

<div class="post-metadata">

**Author:** ![Kristian209](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kristian209/32/92567_2.png) [@Kristian209](https://forum.freecodecamp.org/u/Kristian209)\
**Post date:** [January 28, 2018, 9:52pm UTC](https://forum.freecodecamp.org/t/twitch-tv-project-https-codepen-io-kristians-pen-wpzkmg-editors-1010/171451/3 "2018-01-28T21:52:31Z")

</div>

I want it out because its giving me too many outputs(too many logos,display names and status’) but if I take it out I can’t cycle through the var array twitchStreamers for my second ajax call.

---

<div class="post-metadata">

**Author:** ![Kristian209](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kristian209/32/92567_2.png) [@Kristian209](https://forum.freecodecamp.org/u/Kristian209)\
**Post date:** [January 30, 2018, 3:38am UTC](https://forum.freecodecamp.org/t/twitch-tv-project-https-codepen-io-kristians-pen-wpzkmg-editors-1010/171451/6 "2018-01-30T03:38:16Z")

</div>

I have changed the code a bit but still stuck, the second twitchStreamers[i] doesn’t loop.Thanks for the help

---

<div class="post-metadata">

**Author:** ![Kristian209](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kristian209/32/92567_2.png) [@Kristian209](https://forum.freecodecamp.org/u/Kristian209)\
**Post date:** [January 30, 2018, 3:38am UTC](https://forum.freecodecamp.org/t/twitch-tv-project-https-codepen-io-kristians-pen-wpzkmg-editors-1010/171451/7 "2018-01-30T03:38:58Z")

</div>

> **[Twitch.tv App](https://codepen.io/Kristians/pen/wpZKMG?editors=1111)**
>
> ...

---

<div class="post-metadata">

**Author:** ![Kristian209](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kristian209/32/92567_2.png) [@Kristian209](https://forum.freecodecamp.org/u/Kristian209)\
**Post date:** [January 30, 2018, 4:15am UTC](https://forum.freecodecamp.org/t/twitch-tv-project-https-codepen-io-kristians-pen-wpzkmg-editors-1010/171451/9 "2018-01-30T04:15:35Z")

</div>

I want the second AJAX call url to loop through twitchStreamers to get a proper url to call and extract data from , I’m just getting undefined , which I assume means it’s not looking properly

---

<div class="post-metadata">

**Author:** ![Kristian209](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kristian209/32/92567_2.png) [@Kristian209](https://forum.freecodecamp.org/u/Kristian209)\
**Post date:** [January 30, 2018, 4:48am UTC](https://forum.freecodecamp.org/t/twitch-tv-project-https-codepen-io-kristians-pen-wpzkmg-editors-1010/171451/11 "2018-01-30T04:48:41Z")

</div>

Awesome, yeah it makes sense. Thank you so much!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:28pm UTC](https://forum.freecodecamp.org/t/twitch-tv-project-https-codepen-io-kristians-pen-wpzkmg-editors-1010/171451/12 "2021-01-17T20:28:19Z")

</div>

Closed on January 17, 2021, 8:28pm UTC


