Update snippet descriptions
This commit is contained in:
@ -3,7 +3,7 @@ title: addMultipleListeners
|
||||
tags: browser,event,intermediate
|
||||
---
|
||||
|
||||
Add multiple event listeners with the same handler to an element.
|
||||
Adds multiple event listeners with the same handler to an element.
|
||||
|
||||
- Use `Array.prototype.forEach()` and `EventTarget.addEventListener()` to add multiple event listeners with an assigned callback function to an element.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user