JavaScript espera
await new Promise(resolve => setTimeout(resolve, 5000)); // 5 second wait
//or
(async () => {
await new Promise(resolve => setTimeout(resolve, 5000)); // 5 second wait
})();
Pudochu