title: Jquery error only on IE11 - Syntax Error Foreach(anchor)
body: <p>I am using this code but it errors out in IE11. It seems to work fine on all other browsers including IE Edge. What could be wrong?</p>
  
  <pre><code>document.querySelectorAll('a[href^="#"]').forEach(anchor =&gt; {
      anchor.addEventListener('click', function (e) {
          e.preventDefault();
  
          document.querySelector(this.getAttribute('href')).scrollIntoView({
              behavior: 'smooth'
          });
      });
  });
  </code></pre>
  
  <p>On the console, I get a syntax error on this line: </p>
  
  <pre><code>forEach(anchor =&gt; 
  </code></pre>