Pergunta de entrevista da empresa Slack

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