I show you have how to use the fetch API with a get request. I also show you how to handle errors with a try-catch as well.
Starting Code:
https://raw.githubusercontent.com/php...
Demo:
https://phptuts.github.io/js-video-pr...
Final Code:
https://raw.githubusercontent.com/php...
All final code can be found here:
https://github.com/phptuts/js-video-p...