Angular - RxJS and Observables Fundamentals
Consider this code snippet:
What will be printed to the console?
const subject = new BehaviorSubject('start');
subject.next('first');
subject.subscribe(value => console.log('Subscriber 1:', value));
subject.next('second');
subject.subscribe(value => console.log('Subscriber 2:', value));What will be printed to the console?
