javascript after time call function

Solutions on MaxInterview for javascript after time call function by the best coders in the world

showing results for - "javascript after time call function"
Karl
05 Jan 2018
1/*
2You can use JavaScript Timing Events to call function after certain interval of time:
3
4This shows the alert box every 3 seconds:
5*/
6
7setInterval(function() {alert("Hello")},3000);
8
9/*
101. setInterval(): executes a function, over and over again, at specified time intervals
112. setTimeout() : executes a function, once, after waiting a specified number of milliseconds
12*/