← All interview questions

Skill Zuno · skillzunos.com · Fullstack Pro

RxJS interview questions

Prepare for RxJS interviews on Skill Zuno. This practice book covers RxJS interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open RxJS on Skill Zuno

Also see the RxJS tutorial.

RxJS is a library for reactive programming in JavaScript using observables, which represent streams of values over time. It is used heavily in Angular for HTTP requests, forms and state, and anywhere complex asynchronous events must be combined. RxJS interviews cover observables and subscriptions, operators, higher-order mapping, subjects, error handling and avoiding memory leaks.

Sample RxJS interview questions

How is an observable different from a promise?

A promise resolves once and starts immediately. An observable can emit many values, is lazy until subscribed, and can be cancelled by unsubscribing.

When do you use switchMap?

When only the latest inner request matters, such as search-as-you-type. switchMap cancels the previous inner observable when a new value arrives.

What is a BehaviorSubject?

A subject that holds a current value and emits it immediately to every new subscriber. It is often used for simple state such as the logged-in user.

What is the difference between combineLatest and forkJoin?

combineLatest emits whenever any source emits, once all have emitted at least once. forkJoin waits for all sources to complete and emits their last values once, like Promise.all.

How do you avoid memory leaks with RxJS in Angular?

Use the async pipe, which unsubscribes automatically, or takeUntilDestroyed() or takeUntil with a destroy notifier, so subscriptions end when the component is destroyed.

What you can practice

  • RxJS interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack Pro topics alongside RxJS on skillzunos.com

More Fullstack Pro interview questions

All interview questions