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