Frontend API Querying Without Fetch or XHR
Once upon a time, people used XHR . Everyone today (should) uses the fetch API, native to JavaScript. But do you know about the third way to query data?

Less than twenty years ago, developers used the XHR request, either in vanilla JavaScript, or through jQuery ajax() method.
Then, EMCAScript 2015 came out and introduces fetch and its promise-based logic. Querying data with it improved a lot developer experience.
With modern JS came Angular, then React and Vue, to quote the main frameworks used today, we all use fetch under a layer of abstraction.
Fetching data is easy as long as you understand a minimum how promises work.
However, I’ll show you ⏩ the steps to achieve API querying without those solutions ⏪.

