What does the async keyword do to a function?
- A Runs it on a background thread
- B Makes it always return a Promise and allows await inside
- C Delays execution by one second
- D Prevents it from throwing errors
Answer
Makes it always return a Promise and allows await inside
JavaScript remains single-threaded. async wraps the return value in a resolved Promise and enables await, which pauses the function without blocking the thread.





