CSE 121B: JavaScript Language

Fetch

Overview

The Fetch API provides a JavaScript interface for accessing and manipulating parts of the HTTP pipeline, such as requests and responses. It also provides a global fetch() method that provides an easy, logical way to fetch resources asynchronously across the network.

"The global fetch() method starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available. The promise resolves to the Response object representing the response to your request." - MDN web docs

Prepare

Check Your Understanding

  1. Complete the activities presented in this resource: Fetch Basics - WDD Learning Modules