js add delay with promises
snippet in javascript

js add delay with promises

user3902

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