DEV Community

Discussion on: Simple Explanation of Async-Await in Javascript

Collapse
 
lindaojo profile image
Linda

Thank you, I have fixed the first issue.

Await can only be used "within" an async function. getB() does not have the async keyword because it doesn't use await within it. I hope that's clear.