Coding task · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript
Practice: Retry Pattern with async/await
Implement a retry pattern that automatically retries a failed request with increasing delay (exponential backoff). A key pattern for resilient asynchronous code.
Task
Write an async function fetchWithRetry(url, maxRetries) that retries fetch after an error with increasing delay.