A

Admin • 831K Points
Coach

Q. What is the difference between Subject and BehaviorSubject in RxJS?

  • (A) Subject requires an initial value, BehaviorSubject does not
  • (B) BehaviorSubject stores the latest value and emits it immediately to new subscribers
  • (C) Subject stores the latest value, BehaviorSubject does not
  • (D) There is no difference
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
BehaviorSubject emits the last value to new subscribers, Subject does not.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.