Middle
Why were async/await constructs introduced?
sobes.tech AI
Answer from AI
To simplify working with promises and asynchronous code. async/await allows writing asynchronous code that looks like synchronous, making it more readable and easier to understand. This is achieved because await "pauses" the execution of the async function until the promise is resolved, without blocking the main thread.