event Keyword .. what does it really do ? why is it used in Jquery .

event Keyword .. what does it really do ? why is it used in Jquery .

Picked this example from the Jquery Docs of on function : 

What really would happen without the event keyword(Marked in red) in the code below : 

  1. $( "p" ).on( "myCustomEvent", function( event, myName ) {
  2.   $( this ).text( myName + ", hi there!" );
  3.   $( "span" ).css( "opacity", 1 ).text( "myName = " + myName ).fadeIn( 30 ).fadeOut( 1000 );
  4. });
  5. $( "button" ).click(function () {
  6.   $( "p" ).trigger( "myCustomEvent", [ "John" ] );
  7. });
got the example from here :