addEventListener inside constructor es6 class get fired ones on init and never agian : <p>I'm new to es6 classes and cant quite understand why the following behaves like it does:</p>

<pre><code>  let scrollElement = document.querySelector(".foo");
  scrollElement.addEventListener("scroll", logSomething());

  logSomething(){
    console.log("hi");
  }
</code></pre>

<p>Will output "hi" in my console every time I scroll. This is what I want. Now I try to do the same thing but with a designated class to group all the scroll behaviour:</p>

<pre><code>   class scrollHelper{
        constructor(scrollElement){
            scrollElement.addEventListener("scroll", this.logSomething());
      }


      logSomething(){
        console.log("hi");
      }
   }


  let scrollElement = document.querySelector(".foo");

  new scrollHelper(scrollElement)
</code></pre>

<p>But instead of logging hi every time I scroll it logs "hi" ones when the class instance is created and never after that.</p>

<p>Could someone tell me why this happens and what I'm doing wrong to get the same result as the first example.</p>

<p>Kinds regards,
Merijn</p>
