Web / RxJs Interview questions
Explain the shorthand notation for subscribe method.
The subscribe() method can accept callback function definitions inline, for next, error and complete handlers is the short hand notation or subscribe method with positional arguments.
For example, you can define subscribe method as below.
myObservable.subscribe(num => console.log("next value:" + num), err=> console.log("Received error:" + err), () => console.log("Observer got a completed notification") );
More Related questions...