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

31. Handling async failures

try/catch around await.

Write `async function safeCall(fn)` returning `{ ok: true, value }` or `{ ok: false, error: message }`.
Required in your answer: trycatchawait