how to make a function wai for some time in js code example
Example: how create a delay for html js
console.log("Hello");
setTimeout(() => { console.log("World!"); }, 2000);
console.log("Hello");
setTimeout(() => { console.log("World!"); }, 2000);