Question · Angular course · Module 7: RxJS

The filter operator

How will the filter(n => n > 5) operator behave on a stream emitting 2, 6, 4, 8?

Answer options

  • It passes through 6 and 8
  • It passes through 2 and 4
  • It passes through all values
  • It sums the values to 20

You can check the correct answer by solving this task in the CodeWorlds game.