Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it is appropriate to use Promise.await in place of async/await, as both techniques achieve the same result of waiting for a Promise to resolve before continuing execution. However, it is important to note that Promise.await is not natively supported in JavaScript and requires the use of a Promise library such as bluebird or co. Additionally, some developers may prefer async/await due to its more readable syntax and consistency with other asynchronous programming techniques in JavaScript.