I know that Fetch API uses Promise
s 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?