title: How to Pass Element As Argument In Event Listener
body: <p>I have a program that has a large number of reusable elements that all need an event listener. Because of this, I need a way to get the element from the listener. Here is what I want to do in code:</p>
  
  <pre><code>document.querySelectorAll(".class").forEach(function(el) {
      el.addEventListener("click", function(element/*The element that the event listener is assigned to, passed as an argument*/) {
          console.log(element) //Print out the element that was clicked in the console
      })
  })
  </code></pre>
  
  <p>Is there any way to replicate this or something of the sort in JavaScript?</p>