diff --git a/src/data/roadmaps/nodejs/content/fetch@B_3rTGQxJneMREXoi2gQn.md b/src/data/roadmaps/nodejs/content/fetch@B_3rTGQxJneMREXoi2gQn.md index 7aa0a6f2e..a7c4556c3 100644 --- a/src/data/roadmaps/nodejs/content/fetch@B_3rTGQxJneMREXoi2gQn.md +++ b/src/data/roadmaps/nodejs/content/fetch@B_3rTGQxJneMREXoi2gQn.md @@ -1 +1,10 @@ -# fetch \ No newline at end of file +# fetch + +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. + +Visit the following resources to learn more: + +- [@official@MDN - Using the Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch) +- [@official@NodeJS globals: fetch](https://nodejs.org/api/globals.html#fetch) +- [@official@MDN - Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) +- [@article@freeCodeCamp on avoiding callback hell](https://www.freecodecamp.org/news/how-to-deal-with-nested-callbacks-and-avoid-callback-hell-1bc8dc4a2012/)