(async () => { async function bar () { var text = "Hello"; return text; } var test = await bar() console.log(test) })()