title: How to show last 5 seconds when timing is running out?
body: <p>Hi i am using Javascript set timeout to run a certain function.</p>
  
  <p>How do i display the last 10 seconds of the timeout when it is nearing the end?</p>
  
  <pre><code>var a = setTimeout('someFunction()', 10000);
  </code></pre>
  
  <p>Is it able to display something using the value that it store into the variable? </p>
  
  <p>Thanks</p>