SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jun 17 · 29 min readPart 4: Where JavaScript Actually RunsWhat 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).00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jun 17 · 37 min readPart 3: Where Threads SleepWhat 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 n00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jun 14 · 27 min readPart 2: What "Single-Threaded" Actually MeansWhat 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 si00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jun 14 · 18 min readPart 1: The Question Tutorials SkipWhat 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.addEventListener00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·May 29 · 32 min readPart 4: Why this Is the Only ExceptionThe JavaScript Environment Model — Part 4 of 4. By the end of this post you'll be able to predict the value of this in any function, regardless of how it's defined or called. Arrow functions will stop00