timeOut 2 seconds js code example Example: javascript settimeout setTimeout(function(){ alert("Hello"); }, 3000);