from where function f gets the event? no one passes it.
it is sent automatically by the bind
function - when the handler is executed.
line },[event.content[0]]);
It's just an argument for the iterNodes
function which is an array of size 1 which has the value of a property named content which is also an array , so it takes its first cell.