Async JS Quiz

Complete this assessment with 100% score to master this chapter.

01Which keyword is used to wait for a Promise to resolve inside an async function?

02What are the three states of a Promise?

03Given this code: console.log('start'); setTimeout(() => console.log('later'), 1000); console.log('end'); — what is the output ORDER?

04What is the correct way to handle errors when using async/await?

05What is a callback in JavaScript?