How to add attributes to a function called on an event?

I don’t know if the question is properly clear, but basically I’m adding an event and calling a function with that event, but I need to define some attributes for this function, is there any way similar to this:

var prop = 'hello'
        
function event(){
  console.log(this.prop) //hello
}

event.addAtribute = prop

window.addEventListener('click', event);