element.addEventListener("click", () => {
functionYouWantToCall(yourArguments);
});
someObj.addEventListener('click', some_function(someVar) );
const some_function = (someVar) => {
return (e) => {
console.log(someVar)
console.log(e)
}
}
window.addEventListener("load",function (e) {loadfunction(e,"hello")},true);