Haven't coded for 2 months, need help with Twitch.tv app

Ok, so I do remember how the JS and all this API stuff works. I had just fixed my JS code earlier. However, I don’t remember much HTML or jquery. `var streamers = [“freecodecamp”, “GeoffStorbeck”, “terakilobyte”, “habathcx”,“notmichaelmcdonald”,“RobotCaleb”,“medrybw”,“comster404”,“brunofin”,“thomasballinger”,“joe_at_underflow”,“noobs2ninjas”,“mdwasp”,“beohoff”,“xenocomagain”];

var url = " https://wind-bow.gomix.me/twitch-api";
for(var i=0; i< streamers.length; i++){

$.getJSON(‘https://wind-bow.glitch.me/twitch-api/streams/’ + streamers[i], function(data){
console.log(data);
if(data.stream === null){
//stuff
}
else {
//stuff
}

});
}
`
I don’t know exactly how to put in what I’m thinking in those conditionals. Here is the link to my Codepen: https://codepen.io/ArchivalBoat50/pen/JyPVbd. I want to have two groups offline and online and I want to put the streamers that are offline into the offline group and same goes for the online streamers. However, I don’t exactly know how to do that.

Maybe go back and review your freeCodeCamp Challenges? Since you haven’t coded in a while you might need review to get used to coding again.