What is an async function?
async function foo() {
...
}Answer
// Normal promises in regular function:
function foo() {
promiseCall()
.then(result => {
// do something with the result
})
}
// async functions
async function foo() {
const result = await promiseCall()
// do something with the result
}Good to hear
Additional links
Last updated