Junior — Senior
What will the console display in this code fragment
livecode
Task condition
Determine the order of output to the console for the following JavaScript code:
console.log(1);
setTimeout(() => console.log(2), 0);
console.log(3);
livecode
Task condition
Determine the order of output to the console for the following JavaScript code:
console.log(1);
setTimeout(() => console.log(2), 0);
console.log(3);