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
  • 857,932
  • 118
  • 1,152
  • 1,264
RogerKint
  • 103
  • 7

0 Answers0