Slide 5
Slide 5 text
Asynchronous code
evaluation
1 - setTimeout(function printO() {
? - console.log('O');
}, Math.random * 1000);
2 - setTimeout(function printL() {
? - console.log('L');
}, Math.random * 1000);
3 - console.log('L');
4 - End, `printL` and `printO` in the EL
7 - End, `printL` or `printO` in the EL
8 - End, the event loop is empty: Exit
Friday, August 10, 12