title: what is setTimeOut() function in javascript?
body: <p>Can i ask what the function of setTimeOut method in javascript?As below:</p>
  
  <pre><code>function startTime()
  {
  var today=new Date();
  var h=today.getHours();
  var m=today.getMinutes();
  var s=today.getSeconds();
  // add a zero in front of numbers&lt;10
  m=checkTime(m);
  s=checkTime(s);
  document.getElementById('txt').innerHTML=h+":"+m+":"+s;
  t=setTimeout('startTime()',500);
  }
  </code></pre>