setTimeout(() => {}, 5000); code example Example: javascript settimeout setTimeout(function(){ alert("Sup!"); }, 2000);//wait 2 seconds