self invoked wait and next
by apasaja
JavaScript
(function (next) {
for(let i = 0; i < 10; i++) {
console.log('first', i)
}
next()
}(function () {
for(let i = 0; i < 10; i++) {
console.log('next', i)
}
}))
by apasaja
(function (next) {
for(let i = 0; i < 10; i++) {
console.log('first', i)
}
next()
}(function () {
for(let i = 0; i < 10; i++) {
console.log('next', i)
}
}))