implement timeout in javascript code example
Example 1: javascript settimeout
setTimeout(function(){
alert("Sup!");
}, 2000);//wait 2 seconds
Example 2: settimeout javascript
//setTimeout having parameater
//1. function
//2. time in mili second
//parm1 , parm2 ........
setTimeout(function(){
console.log("DARK_AMMY");
}, 2000);//wait 2 seconds