Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, async/await functions work properly with map or for loop in JavaScript. When using async/await with map or for loop, each iteration waits for the previous iteration to complete before starting the next one. This ensures that the results are processed in sequence and the program does not continue until all the promises have resolved or rejected. However, it's important to correctly handle any errors that may occur during the process, as this could cause unexpected behavior.