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