Domanda di colloquio di Slack

Why is javascript a good usecase of the pub/sub model?