I am making a site where I need to utilize youtube API as well as twitch API.
I followed this tutorial https://www.youtube.com/watch?v=9sWEecNUW-o and most of the js part was written in jquery.
but when it comes to the twitch API, the documentation examples were given in vanilla JS.
now the issue I am facing is that if I embed the above code inside my HTML page, I can kind of got it working, but if I put it inside the app.js file, it does not work.
how do I convert the above code to jQuery?