title: Javascript how to clear interval after specific time
body: <pre><code>setInterval("FunctionA()", 1000);
  </code></pre>
  
  <p>Now how do I clear this interval after exactly 5 seconds so that I can achieve -</p>
  
  <pre><code>var i = setInterval("FunctionA()", 1000);
  (After 5 seconds)
  clearInterval(i);
  </code></pre>