Part 7: Closing the Loop
What no one teaches you about the JavaScript Event Loop — Part 7 of 8 A puzzle that exposes await async function f() { console.log('A'); await Promise.resolve(); console.log('B'); awa
Search for a command to run...
Articles tagged with #javascript
What no one teaches you about the JavaScript Event Loop — Part 7 of 8 A puzzle that exposes await async function f() { console.log('A'); await Promise.resolve(); console.log('B'); awa
What no one teaches you about the JavaScript Event Loop — Part 6 of 8 A puzzle, slightly harder Promise.resolve().then(() => { console.log('1'); Promise.resolve().then(() => console.log('2'))
What no one teaches you about the JavaScript Event Loop — Part 4 of 8 A puzzle in DevTools Open any page in your browser. Open DevTools. Click the Performance tab. Hit the record button (the circle).
What no one teaches you about the JavaScript Event Loop — Part 3 of 8 A different puzzle In Part 2 we left a question hanging. An idle browser tab uses zero CPU. Open your task manager — a tab with n
What no one teaches you about the JavaScript Event Loop — Part 2 of 8 A new puzzle In Part 1, an infinite loop froze the page. The click vanished. We left with a question: what does "JavaScript is si
What no one teaches you about the JavaScript Event Loop — Part 1 of 8 A puzzle to start Open any page in your browser. Open DevTools, go to the console, and paste this: document.body.addEventListener