Okay after a lot of moaning and head smashing I’ve pretty much finished it.
One issue that I cannot solve is that comster404 and brunofin come up as undefined. I cannot grab their data and list their username or anything. Can anybody please point me in the right direction?
Sorry, I’m too tired right now to go through your code and I have to work in the morning, but I will say that yes, there is quite a gap between the lessons and the builds. The Twitch problem was especially confusing for me, compounded by the fact that I wasn’t completely sure what twitch is.
If no one has tackled this by tomorrow night, I’ll take a stab when I get home from work.
Thank you. Though I’m not too sure where to handle it, like whereabouts in the ajax call. I tried various things but can’t get it right. I still have trouble with understanding scope.
This is where you can handle 404 responses; the undefined values.
To make it more expressive, you could:
Change "Unidentified User" to username which will be the channel’s username.
Change "Not found" to "Account Closed".
If you want to see the AJAX response inside your error function:
console.log(err.responseJSON); inside the error function’s block scope.
I still have trouble with understanding the scope.
I think you’re doing a great job dealing with your AJAX calls and handling each scope correctly.
As long as you got it working, don’t worry about it too much for now.
Take note on what you would like to understand better while working, and reflect upon later when you’re done. You can take a “project” break to understand those concepts a little bit better if you want, then do your research. But don’t be distracted about it too much while you do your work.