Back to tasksGet help with live coding in real time with Sobes Copilot
Junior — Senior
47
Определение порядка вывода в консоль (пример 65)
Task condition
В какой последовательности будут отображены сообщения в консоли?
console.log(1);
setTimeout(function() {
console.log(2);
});
Promise.resolve(3).then(console.log);
console.log(4);
setTimeout(function() {
console.log(5);
}, 0);
console.log(6);
const repeatLog = () => {
console.log('foo2');
setTimeout(repeatLog);
}
repeatLog();