Async/Await

PHOTO EMBED

Thu Jul 29 2021 22:01:05 GMT+0000 (UTC)

Saved by @stephanieraymos

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

function test(){
 return 'successful';
}
content_copyCOPY

https://afteracademy.com/blog/migrating-from-promise-chains-to-async-await