What is the short hand notation for subscribe method?

The subscribe() method can accept callback function definitions in line, for next, error, and complete handlers is known as short hand notation or Subscribe method with positional arguments.

For example, you can define subscribe method as below,

(x) => console.log('Observer got a next value: ' + x),
(err) => console.error('Observer got an error: ' + err),
() => console.log('Observer got a complete notification'),

April 03, 2022