Fetch API vs XMLHttpRequest

I know that Fetch API uses Promises and both of them allow you to do AJAX requests to a server.

I have read that Fetch API has some extra features, which aren’t available in XMLHttpRequest (and in the Fetch API polyfill, since it’s based on XHR).

What extra capabilities does the Fetch API have?

3 Answers
3

Leave a Comment