getDownloadUrl on an Array of videos

Thank you! Quick question though, I’m working with the code sample you gave there, and it’s having a problem with await being in there without async. So I’m trying to put it in there, but I’m not getting any results from it. Just a blank array. Here’s my most recent attempt which didn’t work:

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

I also tried doing “for await” but that didn’t work either. Definitely scratching my head over this one.

I appreciate the help.