DEV Community

Sharmila kannan
Sharmila kannan

Posted on

FETCH API

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.
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode
  • 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)