There are several ways to deal with the asynchronous nature of our javaScript application. Earlier times, callback() was used heavily unless javaScript Promises and Observables were introduced.
The reason Observables are preferred over Promises is, it already contains the features of Promises plus it has much more other features to it.
Observables provides several operators which are very useful at times or absolutely necessary to know.
Here are some of these operators and what are the use cases where they can be used?
When it is enough for your asynchronous functionality to get only a single return event like a promise you can use
So,
To promise is
Need this inside a real product? ARITS does web app and platform engineering.
.avif)




