Answers for "execute after one second javascript"

2

js after 1 second

const now = new Date();
now.setSeconds(now.getSeconds() + 1)
Posted by: Guest on March-08-2021
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 "execute after one second javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language