addeventlistener javascript parameters code example
Example: how to call a function with arguments on event listener javascript
element.addEventListener("click", () => {
functionYouWantToCall(yourArguments);
});
element.addEventListener("click", () => {
functionYouWantToCall(yourArguments);
});