From 1881f20c902a9087bb8a0c48a5f240d9cad5d348 Mon Sep 17 00:00:00 2001 From: SURAJ39 <90123732+SURAJ39@users.noreply.github.com> Date: Sat, 22 Oct 2022 02:57:21 +0530 Subject: [PATCH] added content to 101-fetch.md (#2677) * added content to 101-fetch.md * Update content/roadmaps/106-javascript/content/118-working-with-apis/101-fetch.md Co-authored-by: Kamran Ahmed --- .../content/118-working-with-apis/101-fetch.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/roadmaps/106-javascript/content/118-working-with-apis/101-fetch.md b/content/roadmaps/106-javascript/content/118-working-with-apis/101-fetch.md index 0c3ac8274..2a82d68aa 100644 --- a/content/roadmaps/106-javascript/content/118-working-with-apis/101-fetch.md +++ b/content/roadmaps/106-javascript/content/118-working-with-apis/101-fetch.md @@ -1,10 +1,10 @@ # Fetch -Fetch or Fetch API is a modern alternative to XMLHttpRequest. Compared to XMLHttpRequest, fetch is cleaner, simpler and easier to understand. Fetch already uses Promise, so `fetch()` does not directly return response body but instead returns a promise that resolves with a `Response` object, which is a representation of the entire HTTP response. + +The fetch() method in JavaScript is used to request to the server and load the information on the webpages. The request can be of any APIs that return the data of the format JSON or XML. This method returns a promise. Free Content -Using the Fetch API +Fetch MDN Docs +Fetch W3school Docs +Network request - Fetch Network request - Fetch -W3Schools – JavaScript Tutorial -A Comprehensive Course on JavaScript with Quizzes and Exercises - CodeGuage -Learn Fetch API In 6 Minutes \ No newline at end of file