Junior — Senior
Order of output to the console (task #63)
livecode
Task condition
Determine the order in which the values will be printed to the console when executing the following JavaScript code:
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);