Medium

This question is a daily question and will count towards your daily streak.

The code above is fetching data from a URL using an asynchronous function with error handling. Assume the API occasionally returns an HTTP 404 error. Which statement best ensures the script gracefully handles the error and retries the fetch operation up to 3 times before throwing an error?

Choose an option below