title: JavaScript: SyntaxError: missing ) after argument list
body: <p>I am getting the error:</p>
  
  <blockquote>
    <p>SyntaxError: missing ) after argument list</p>
  </blockquote>
  
  <p>With this javascript:</p>
  
  <pre><code>var nav = document.getElementsByClassName('nav-coll');
  for (var i = 0; i &lt; button.length; i++) {
      nav[i].addEventListener('click',function(){
              console.log('haha');
          }
      }, false);
  };
  </code></pre>
  
  <p>What does this error mean?</p>