← Code LabJavaScript0/50 solved · 0%
Async · hard

47. Polling with backoff

Wait for a confirmation.

Write `async function waitFor(check, attempts)` calling `check()` until it returns truthy, returning the value, or `null` after `attempts` tries.
Required in your answer: for (await