A little help in Twitch Viewer challenge

A little help in Twitch Viewer challenge
0

#1

Hi all and good morning,

I’m a little stuck in getting, for an example, the status of the channel. I have the following code and i’m trying without jQuery:

var xhr = new XMLHttpRequest();
xhr.open(‘GET’, ‘https://api.twitch.tv/kraken/channels/freecodecamp’, false);
xhr.send();

console.log(xhr.responseText);

When i check the console, it gives me all the info about the channel, which is great, but now i’m stuck in getting the properties of the response, for example: “status”.

Thanks in advance and happy coding.


#3

P1xt, i’m sorry for taking a long time to reply. Thanks for the help, i knew that somehow i needed to parse but didn’t know how. Now i know :D, thank you so much.