~/talk

Understanding Javascript’s event loop and call stack

Talkat ThunderPlains 2023 · on Friday, 2023-11-10· [javascript, web-platform]
links:none on file
slides:none on file

JavaScript runs single-threaded — one thing at a time while browsers provide V8 and browser Web APIs to offload work; demos use setTimeout and Promises to show how callbacks move from Web APIs into the task queue or the higher-priority microtask queue before task queue. Code examples reproduce ordering quirks (start/middle/end, promise then callbacks before zero-delay timeouts) and note Chrome caps call-stack depth roughly between 10 and 50,000. Slides and runnable examples are published for verification.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45Why event loop matters
  3. 3:30JavaScript single-threaded runtime
  4. 9:09Call stack fundamentals
  5. 13:00Web APIs and async code
  6. 15:05Task queue explained
  7. 18:13Event loop mechanics
  8. 22:03Recap of key concepts
  9. 23:05Microtask queue deep dive
  10. 25:40Promise execution flow
  11. 27:45Live code examples
  12. 30:17Key takeaways summary
  13. 31:00Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.