Hello everyone,
I’m working on my Twitch API app, and I made the following call to API:
$.ajax({
url: 'https://wind-bow.gomix.me/twitch-api/streams/monstercat?callback=?’,
datatype: ‘json’,
success: function(data) {
console.log(data);
console.log(data.stream);
}
});
The console log logs the data, but in a way that I haven’t seen before when I was working with other APIs. It starts like this: ‘/**/ typeof === ‘function’ &&’ .
This might be the reason why I can’t get a response when I try to log the data.stream value. Even though the ‘stream’ object exists in the data, it won’t log it to the console.
This is my CodePen: http://codepen.io/Yori1/pen/KWpPeE
I’ve been stuck with this problem for quite some time, so if someone could explain what’s up I would appreciate it.