Below you will find pages that utilize the taxonomy term “Javascript”
Notesread more
Example: video note
This is a starter video note. Copy it, or delete it once you add your own.
Use note_type = "video" and put the YouTube URL in source so the video embeds at the top. Headings like 12:40 make timestamped notes easy to scan.
Takeaways
- The browser event loop is a queue: JavaScript runs one thing at a time, then picks the next callback.
- Rendering and I/O are not the same queue as your JS callbacks.
setTimeout(fn, 0)does not run immediately; it waits until the current stack is clear.
Notes
01:15 — Call stack
JS is single-threaded. Each function call is pushed onto the stack and popped when it returns.