Callbacks, Promises and Async/Await
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
- Pro
A page loads a user, then that user's orders, then the first order's details. Each step needs the result of the one before. Explain how you'd write this with nested callbacks, with promises, and with async and await, and why the later styles are easier to read and to handle errors in.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.