how to execute code after two seconds in javascript code example
Example 1: javascript wait 1 second
setTimeout(function(){
console.log("Ready")
}, 1000);
Example 2: wait 0.5 after function javascript
statement1();
setTimeout(function() {
statement2();
}, 500);