JS Agregar retraso con las promesas

await new Promise(resolve => setTimeout(resolve, 1000));
gaz_edge