Calling an async function without await
const asyncFunction = async () => "HELLO";
const main = async () => {
const value = asyncFunction();
console.log(value === "HELLO" ? "true" : "false");
};
main();
Output: false
asyncFunction()
returns a promise not the resolved value.