✅ – Adi – 17-58 Jul 14

Is it ok to directly pass arguments to function as params in event listener callbacks? eg: btn2.addEventListener("click", this.requestPermission(registration));
UU
Unknown User644d ago
A
Adi644d ago
oh ok
UU
Unknown User644d ago
A
Adi644d ago
no it cannot thats why passing it as a param
UU
Unknown User643d ago