How to pass arguments in callback function in JavaScript?
Answers
Rahul M...
4916
Points
27
Posts
|
Use either .call and .apply if you want to send a comma separated list of arguments or send in an array respectively. I think, in your case, we can create an object of two prop and .call can be used as following:
And use it as:
Posted On:
25-Sep-2021 22:33
Thank u so much. - edx 16-Nov-2021 04:11
|
Blog
Active User (0)
No Active User!