Web / RxJs Interview questions
What are observables and observers?
An Observable is basically a function that can return a stream of values to an observer over time, this can either be synchronously or asynchronously. The data values returned can go from zero to an infinite range of values.
Observer executes some instructions when there is a new value or a change in data values from Observable. The Observable is connected to the observer who does the execution through subscription, with a subscribe method the observer connects to the observable to execute a code block.
More Related questions...