Basic Get Request in Javascript

Payton Gray
Nov 5, 2020

--

The Fetch API uses JavaScript Promises to handle results/callbacks. Fetch requests make an asynchronous request to access APIs using GET, POST, and PUT. Asynchronous in Javascript means it runs separately from the main application thread and notifies the calling thread.

Basic Fetch Request Skeleton

In the example below the fetch function is performing a GET Request and it’s taking in the argument of the specific URL. .then we are going to parse through the data.

--

--

No responses yet