title: How can I get the element that is clicked on with a click handler added in a forEach?
body: <p>I need to detect element count number</p>
  <p>I have 10 poster elements and I have a <code>forEach</code> loop</p>
  <p>I need the poster number that I clicked on, for example if I click on the seventh poster <code>posternumber</code> should be <code>7</code></p>
  <pre><code>    poster.forEach(p =&gt; {
              p.addEventListener('click',function(){
                  videoTag.src = xResult[movieLanguageUrl][/*posternumber*/]; 
             });
      });
  </code></pre>