getDownloadUrl on an Array of videos

Hi Jared,

The problem is that the forEach loop is just firing off a bunch of async calls and then you log the urlVideoArray before they are finished. Instead of using the forEach loop, try changing it to a for of loop instead. The for of loop will handle the await call like you are expecting. It should look like something like this:

let urlVideoArray = [];
for (const fileName of videoArray) {
let video = await mediaManager.getDownloadUrl(fileName);
urlVideoArray.push(video);
});
console.log(“urlVideoArray”, urlVideoArray);