✅ – 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));
5 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
oh ok
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
no it cannot thats why passing it as a param
This question has an answer! Thank you for helping 😄
If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/997200305760514169
This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/997200305760514169