03 / 05

How to pass a parameter to an event handler or callback?

You can use an arrow function to wrap around an event handler and pass parameters:
This is equivalent to calling .bind as below: