How correctly to determine online user status on Twitch

How correctly to determine online user status on Twitch
0.0 0

#1

Hello I’m working on the Twitch Tv

Here I get some question which I can’t to solve
TwitchTV

  1. in the first for() loop I’m trying to determine online status but something is wrong because it’s allways showing ONLINE status.
  2. in the second for() loop I’m trying to bring out to the screen the list of the users but here code generate only random single user.

What is wrong with my code?