title: After typing code, I get an error that says "not called in your program", and an error that says btn is an enexpected token
body: <p>I am trying to make a button go to a link. icecub helped my on the code, but when I run this </p>
  
  <pre><code>function handleRedirect(){
      window.location = "https://max0815.wixsite.com/theaviary";
  }
  
  
  document.addEventListener("DOMContentLoaded", function(event) {
      const btn = document.getElementById("button27");
  
  
      btn.addEventListener("click", handleRedirect, false);
  });
  </code></pre>
  
  <p>It claims that the part where is says "function(event)", that "event" is defined, but not called in your program. Furthermore, when I run the program, it highlights the "b" in "const btn =" and says "SyntaxError: Unexpected token (136:10)" How would I approach this problem? How should I fix it?
  <a href="https://i.stack.imgur.com/5s85D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5s85D.png" alt="enter image description here"></a></p>