async function main() { let a = await test(); console.log(a); } function test(){ return 'successful'; }