setTimeout(function(){ //code goes here }, 2000); //Time before execution
setTimeout(() => { alert('Hello') }, 1000)