title: what is the difference between calling function in JavaScript with or without parentheses ()
body: <p>so a simple example would be </p>
  
  <pre><code>function a() {
      alert("something");
  }
  
  anything.onclick = a; // this is without parentheses
  
  anything.onclick = a(); // this is with parentheses 
  </code></pre>
  
  <p>What is the difference between the two?</p>
  
  <p>And one thing more: if I define the same function but this time return false, will it work?</p>
  
  <pre><code>function a(){
      alert("something");
      return false;
  }
  </code></pre>