Answers for "run javascript codes after a second"

1

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
0

javascript execute after 1 second

function closeAnimation() {
    setInterval(function(){hide()}, 400);
    clearInterval(stopAnimation);
}

var stopAnimation = setInterval({hide()}, 400);
Posted by: Guest on December-30-2021

Code answers related to "run javascript codes after a second"

Code answers related to "Javascript"

Browse Popular Code Answers by Language