0

Sorry this might seem like a stupid question but I have no idea why it's throwing this error, this is the entire code in an index.js file that I try to run!

(async() => {
  console.log('hi');
})();

And it returns this error!

(intermediate value) is not a function`

When I turn into a regular async function and call it it works fine.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
RogerKint
  • 454
  • 5
  • 13

0 Answers0