This method takes the URL as an argument and returns a promise that the calling code should use to get the result.
The request is a simple GET request, downloading the contents of the URL.
The promise returned by the fetch() method can be used to access the response of the request.
See more results on Neeva
Summaries from the best pages on the web
let promise = fetch(url, [options])
Without options , this is a simple GET request, downloading the contents of the url .
The browser starts the request right away and returns a promise that the calling code should use to get the result.