Use fetch() to make HTTP requests to external APIs. Fetch data from https://api.github.com/users/cloudflare and return the login field from the JSON response.
Great! You can use fetch() to call any HTTP API. Remember to handle errors with try/catch, and check response status codes before parsing JSON.
Use fetch() to make HTTP requests to external APIs. Fetch data from https://api.github.com/users/cloudflare and return the login field from the JSON response.
Great! You can use fetch() to call any HTTP API. Remember to handle errors with try/catch, and check response status codes before parsing JSON.