Answers for "how to set a delay in js"

-1

javascript wait 10 seconds

setTimeout(function () {
        // ...
    }, 10000);

// or

.then(() => {
  // ...
  ({ timeout: 10000 });
      });
Posted by: Guest on July-12-2020
6

js add delay

await new Promise(resolve => setTimeout(resolve, 1000));
Posted by: Guest on March-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language