Answers for "javascript execute function after 2 seconds"

0

javascript run something after x seconds

setTimeout(function(){
  location.reload();
}, 3000); //run this after 3 seconds
Posted by: Guest on August-07-2020
0

execute after one second javascript

setTimeout(function () {
  console.log('Hello world')
}, 1000)

setTimeout(() => {
  console.log('Foo bar')
}, 1000)
Posted by: Guest on February-17-2021

Code answers related to "javascript execute function after 2 seconds"

Code answers related to "Javascript"

Browse Popular Code Answers by Language