setitme out in js code example Example: javascript settimeout Click to copysetTimeout(function(){ alert("Sup!"); }, 2000);//wait 2 seconds