Q. What does the 'await' keyword do?

  • (A) Pauses the function until a promise settles
  • (B) Pauses script execution globally
  • (C) Rejects promises
  • (D) Creates a new thread
πŸ’¬ Discuss
βœ… Correct Answer: (A) Pauses the function until a promise settles
Explanation: await pauses an async function until the promise settles.
Explanation by: Chandani
await pauses an async function until the promise settles.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
71
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
99%
Success Rate