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.