Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-18 20:24:28 +03:00
parent 852ad3cc5f
commit b5952d7d14
13 changed files with 18 additions and 13 deletions

View File

@ -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.