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