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)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay