I’m currently working on the Twitch.tv Stream Checker and I am unable to get the check online status functionality to work as it keeps on returning as undefined.
Here is my codepen: https://codepen.io/dopeland/pen/LjPRNZ
I know it has to do with returning the values, due to the correct data being displayed in the console, but when output it results as undefined. I feel like I run into this issue a lot so if anyone could provide any explanation of sorts that could help me not repeat this mistake in my code.