LiveLoveApp logo

Exercise - Connect Operator

Exercise

The goal of this exercise is to learn how to create a multicasted Observable using the connect() operator.

  1. Open exercise on codesandbox.
  2. I've created the source Observable that synchronously emits next notifications whose integer values are 1 through 5.
  3. Use the connect() operator and specify the selector function.
  4. Within the selector function, filter next notification values from the not-yet-connected multicasted Observable for even numbers only.
  5. Finally, subscribe() to the connected Observable.