title: add an event listener on couple of icons using querySelectorAll?
body: <p>I have this problem I want to add a on click event on some icons in UI after the click happens a forEach is triggered how to get a specific icon using querySelectorAll.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function someFunction() {
   let [...icon] = document.querySelectorAll('.fas');
   icon.addEventListener('click', (e) =&gt; {
   let items = icon.closest('.father').querySelectorAll('.item');
   items.forEach((item) =&gt; (item.style.display = 'none')); 
  })
  }
  
  someFunction()</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class"father"&gt;
  &lt;div class="fas"&gt;-&lt;/div&gt;
  &lt;div class="item"&gt;&lt;p&gt;Text&lt;/p&gt;&lt;/div&gt;
  &lt;div class="item"&gt;&lt;p&gt;Text&lt;/p&gt;&lt;/div&gt;
  &lt;div class="item"&gt;&lt;p&gt;Text&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class"father"&gt;
  &lt;div class="fas"&gt;-&lt;/div&gt;
  &lt;div class="item"&gt;&lt;p&gt;Text&lt;/p&gt;&lt;/div&gt;
  &lt;div class="item"&gt;&lt;p&gt;Text&lt;/p&gt;&lt;/div&gt;
  &lt;div class="item"&gt;&lt;p&gt;Text&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>