Course · Section 16: Asynchronous JavaScript: Promises, Async/Await, and AJAX · Lecture 263: Promises and the Fetch API
Implement an async function `fetchOrDefault(value, fallback)` returning `value` when it is not null or undefined, otherwise `fallback`.
+ 1 hidden test run on Submit.
?? returns the value unless it is nullish, otherwise the fallback, inside an async function.
Run your code to see results.