DEV Community

Discussion on: Promises inside a loop - Javascript ES6

Collapse
 
ganeshmani profile image
GaneshMani

Thank you for the Answer. Correct me if i am wrong. if we put "await" for a function. that function has to return a Promise.

Reference : javascript.info/async-await

Collapse
 
diomalta profile image
Diego Malta

I thought the email function was already asynchronous, you that's right.