The function called after an event is triggered is referred to as an event handler.

We specify how we want the event to be handled inside these types of functions.

Make sure to pick publish followed by () and then {, }.