Wykonaj po jednym drugim JavaScript
setTimeout(function () {
console.log('Hello world')
}, 1000)
setTimeout(() => {
console.log('Foo bar')
}, 1000)
Redwan Hussain
setTimeout(function () {
console.log('Hello world')
}, 1000)
setTimeout(() => {
console.log('Foo bar')
}, 1000)
const now = new Date();
now.setSeconds(now.getSeconds() + 1)