title: Why is forEach not working in Edge?
body: <p>This code is not working in Edge browser. The accordion panel does not open and I get this error:</p>
  
  <blockquote>
    <p>Object doesn't support property or method 'forEach'</p>
  </blockquote>
  
  <pre><code>const accordionBtn = document.querySelectorAll('.btn-accordion');
  
  accordionBtn.forEach(item =&gt; item.addEventListener('click', e =&gt; {
      e.preventDefault();
  
      const currItem = e.currentTarget;
  
      currItem.classList.toggle("open");
  }))
  </code></pre>