Here is an example that can be run with ts-node. Why is the value displayed in result 2 instead of 3.
import { interval, Subject } from \'rxjs\'; import { startWi