title: How can I auto hide alert box after it showing it?
body: <p>All I want to do is, how can I auto hide alert box within specific seconds after showing it?</p>
  
  <p>All I know is, </p>
  
  <pre><code>setTimeout(function() { 
        alert('close'); 
  }, 5000);
  
  // This will appear alert after 5 seconds
  </code></pre>
  
  <p>No need for this I want to disappear alert after showing it within seconds.</p>
  
  <p><strong>Needed scenario :</strong></p>
  
  <ol>
  <li><p>Show alert</p></li>
  <li><p>Hide/terminate alert within 2 seconds</p></li>
  </ol>