this refers to the element on the page which triggered the event, so in this case an anchor element.
event is a MouseEvent, who's default action needs preventing.
this is available within the scope of the function, without having to pass it explicitly as a parameter.
You could also write:
and leave out the event entirely.