1var delayInMilliseconds = 1000; //1 second
2
3setTimeout(function() {
4 //your code to be executed after 1 second
5}, delayInMilliseconds);
6
1setTimeout(function(){
2 console.log("hello");
3}, 3000); //wait for atleast 3 seconds before console logging