however... you CAN MAKE fetch requests happen.
Fetch is a way to ask a website for some information. Fetch sends a message to a website asking for information and it sends a message back with the information you asked for.
To use fetch(), you need to provide it with a URL endpoint, and then handle the response using a series of chained .then() methods. Within each .then() method, you can extract and manipulate the response data as needed.
fetch('https://websiteexample.com/1')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
4/100
Top comments (0)