Hello guys I am Erika a new developer. I am not very good with Javascript and I cannot chain these functions together. I read a few guides but somehow b executes before a even with awaits. Shouldn't the execution stop until a finishes?
async function a() {
await setTimeout( async _=>{await console.log('a')}, 300)
}
async function b() {
await console.log('b')
}
a().then(b)
console:
b
a