title: In JavaScript, does it make a difference if I call a function with parentheses?
body: <p>I noticed a difference when calling a function with empty parentheses, or without any parentheses at all. However, I am not passing any arguments to the function so I wondered, what would be the difference between:</p>
  
  <pre><code>window.onload = initAll();
  </code></pre>
  
  <p>and</p>
  
  <pre><code>window.onload = initAll;
  </code></pre>
  
  <p>Please explain the principle behind it.</p>