someObj.addEventListener('click', some_function(someVar) ); const some_function = (someVar) => { return (e) => { console.log(someVar) console.log(e) } }