settimeout 1 second code example
Example 1: settimeout jquery
setTimeout(function(){ alert("Hello"); }, 3000);
Example 2: settimout jquery
setTimeout(function(){ alert("Hello"); }, 3000);
Example 3: javascript settimeout
window.setTimeout(()=>{
console.log('1 second passed!');
}, 1000);