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.
codedrops.hashnode.dev1 min readNo responses yet.