This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Browser API or Feature.
Explainer
Fetch Api is the JavaScript interface used to make asynchronous request (HTTP) to the servers from the web browsers.
fetch always returns the promise to resolve the response object, there is no need for XMLHttp.
Additional Context
* There are also some fetch Api methods like
Get,Put,Post and Delete
- Another advantage of Fetch Api it is more compatible with CORS (used to make connection with another domain easily) and JSON (easy to parse and process responses)
Top comments (0)