The Fetch API provides a modern way to make HTTP requests in the browser. It returns a Promise that resolves to a Response object, which you can then parse to extract the data.
This example demonstrates the fundamental pattern for making GET requests:
calling fetch(), checking the response status, and parsing the response body.