In this video we’re going to be wrapping a traditional AJAX call (or XMLHttpRequest call) inside a Promise, mimicking the behaviour of the Fetch API.
I don’t recommend you use this for your actual websites or production projects, this is more for educational purposes and understanding promises.
Support me on Patreon:
https://www.patreon.com/dcode – with enough funding I plan to develop a website of some sort with a new developer experience!
For your reference, check this out:
Follow me on Twitter @dcode!
If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!