5. [EXTRA] Custom addEventListener - rolling-scopes-school/RS-Short-Track GitHub Wiki
Folder Name | Branch | Coefficient |
---|---|---|
event-listener | event-listener | 0.3 |
The task is to create a custom analog for addEventListener
/removeEventListener
- Support for multiply events
- Support for param 'once'
- Use of native
addEventListener
/removeEventListener
is stricktly forbidden
Examples
addEventListener(eventTarget, eventName, eventHandler, options /* { once: Boolean } */);
removeEventListener(eventTarget, eventName, eventHandler)