await an array of promises code example Example: await array of promises await Promise.all(arrayOfPromises)