Q. What is the difference between an Observable and a Promise in Angular?

  • (A) Observable can emit multiple values over time, Promise emits only one
  • (B) Promise can emit multiple values, Observable only one
  • (C) Both are exactly the same
  • (D) Observable is synchronous, Promise is asynchronous
πŸ’¬ Discuss
βœ… Correct Answer: (A) Observable can emit multiple values over time, Promise emits only one
Explanation: Observables support streams of multiple asynchronous events.
Explanation by: Mr. Dubey
Observables support streams of multiple asynchronous events.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
79
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate