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 <kamranahmed.se@gmail.com>
pull/2685/head
SURAJ39 2 years ago committed by GitHub
parent 2c4ee13552
commit 1881f20c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      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.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch'>Using the Fetch API</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch'>Fetch MDN Docs</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.w3schools.com/jsref/api_fetch.asp'>Fetch W3school Docs</BadgeLink>
<BadgeLink colorScheme='green' badgeText='Course' href='https://javascript.info/fetch'>Network request - Fetch</BadgeLink>
<BadgeLink colorScheme='green' badgeText='Course' href='https://javascript.info/fetch'>Network request - Fetch</BadgeLink>
<BadgeLink badgeText='Read' colorScheme="yellow" href='https://www.w3schools.com/js/'>W3Schools – JavaScript Tutorial</BadgeLink>
<BadgeLink badgeText='Read' colorScheme="yellow" href='https://www.codeguage.com/courses/js/'>A Comprehensive Course on JavaScript with Quizzes and Exercises - CodeGuage</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=cuEtnrL9-H0'>Learn Fetch API In 6 Minutes</BadgeLink>
Loading…
Cancel
Save