title: Javascript Callback timeout
body: <p>I have a fiddle <a href="http://jsfiddle.net/QRtLy/" rel="noreferrer">here</a></p>
  
  <p>Can someone help me understand why the first <code>setTimeout</code> works but not on <code>second</code> one? Please see comments on the code.</p>
  
  <p>In this case, I want to alert first <code>I am first</code> then after 6 seconds, it would alert <code>Hello, sorry I am late</code></p>
  
  <pre><code>function iAmTakingTooLong(message1, message2, callback){       
      //setTimeout(function(){ alert('test'); },6000); //THIS WILL WAIT FOR 6000 MILLISECONDS
      setTimeout(callback(message1+message2),6000);    //THIS WILL NOT WAIT FOR 6000 MILLISECONDS
  }
  
  
  iAmTakingTooLong('Hello, ', 'sorry I am late!', function(fullmessage){
      alert(fullmessage);
  });
  
  alert("I am first!");
  </code></pre>