Javascript library d3 call function

I am not able to understand how d3.call() works and when and where to use that. Here is the tutorial link that I’m trying to complete. Can someone please explain specifically what this piece is do...

Actions
Flag