DEV Community

Ali Labib
Ali Labib

Posted on

What Difference Between using new Promise() and Async/await ?

Top comments (1)

Collapse
 
vishalraj82 profile image
Vishal Raj

Async await is more of a syntactic sugar over the Promise. Async / await makes the code sequential (equivalent of then() after the promise). With promise you may still need a callback from client to return the value. With async await, its regular return statement to return the final value to client.