JavaScript Exercise 9 / 15

Promises and Async/Await

Hard 28 points

Create a Promise that resolves after 1 second with the value "Success" and use async/await to wait for it.

Promises handle asynchronous operations. new Promise() creates a promise, then() handles success, catch() handles errors. async/await is modern syntax for promises. This is essential for API calls.

Well done! 🎉
Your answer is correct! You earned 28 points.
Your code JavaScript
Result