make function wait a second and then do action javascript code example Example: javascript wait 1 second setTimeout(function(){ console.log("Ready") }, 1000);