Answers for "how to wait for seconds and then call function"

2

js wait for seconds

//A
setTimeout( () =>{
    //C - 1 second later
}, 1000);
//B
Posted by: Guest on November-20-2021
-1

javascript wait 10 seconds

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

// or

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

Code answers related to "how to wait for seconds and then call function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language