Q. What is a Promise in JavaScript?

  • (A) A function that never runs
  • (B) A placeholder for a future value
  • (C) A data type
  • (D) An error object
πŸ’¬ Discuss
βœ… Correct Answer: (B) A placeholder for a future value
Explanation: A Promise represents the eventual completion or failure of an async operation.
Explanation by: Chandani
A Promise represents the eventual completion or failure of an async operation.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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