← Code LabNode.js0/50 solved · 0%
Foundations · easy

3. Basic Retry Logic

Retry a synchronous operation N times.

Write `retry(fn, maxAttempts)` that calls `fn` until it succeeds or hits the limit.
Required in your answer: fortrycatch