Hello, I have recently ‘finished’ the twitch project, and by this I mean fulfilled the user stories.
However, upon looking at all the other projects, it’s clear, my code is very different, as I’m not using functions to carry out my processes. The entire project is wrapped in a loop, extracting and displaying the information.
I was wondering, whether or not my project is missing the point or if my solution is just different?
Also, an issue I’m yet to resolve is getting the name of the ‘closed’ accounts to render into the allocated div.
If you can solve this problem, you’re awesome.
First of all, you did a great job : it is working !
You could certainly refactor some part of your code into functions. For example functions to generate the onlineHtml or offlineHtml strings. You will be able to see when to do it the more you keep on coding.
Secondly, for the ‘I am awesome’ challenge, you can do the following :
var name = data.display_name || array[i]
Wow, that worked, you are officially certified ‘awesome’. Thanks a lot for your help man, I hope one day i’m able to solve one of your issues! Long road ahead, but really appreciate this!