execute after one second javascript

Solutions on MaxInterview for execute after one second javascript by the best coders in the world

showing results for - "execute after one second javascript"
Sara
16 Sep 2017
1const now = new Date();
2now.setSeconds(now.getSeconds() + 1)
Ella
26 Jan 2020
1setTimeout(function () {
2  console.log('Hello world')
3}, 1000)
4
5setTimeout(() => {
6  console.log('Foo bar')
7}, 1000)