0

I'm being really dumb here. Why doesn't this async IIFE run?

const f = () => Promise.resolve()

(async function() {  
  console.log('running async IIFE...')
  await f()
})()

Ben Aston
  • 53,718
  • 65
  • 205
  • 331

0 Answers0