timeout in typescript code example
Example 1: timeout typescript
setTimeout(() => {
console.log('hi');
}, 500);
Example 2: run js function after some sec
function myClick() {
setTimeout(
function() {
document.getElementById('div1').style.display='none';
document.getElementById('div2').style.display='none';
}, 5000);
}