how to set up a timeout function to perform in javascript code example
Example: javascript settimeout
setTimeout(function(){
alert("Sup!");
}, 2000);//wait 2 seconds
setTimeout(function(){
alert("Sup!");
}, 2000);//wait 2 seconds