If I call an async function that doesn’t explicitly return anything from the await, will it return a resolved Promise? Or Void? Something else?
For example an IIFE like this, or this but it being called in the global scope by sync code:
(async myFunc() {
const list = await someFunc();
const anotherList = someOtherFunc(list);
console.log(anotherList);
})();
I have it in my head that all async functions return a Promise.
return
in code. In your case,undefined