Slide 22
Slide 22 text
Single-Threaded (Mostly)
• JavaScript is executed in a single thread*
• I/O operations are executed outside of that thread
• But a CPU task blocks the thread*
• If we execute a lot of business logic, we block the thread
• If the thread is blocked, the entire browser tab becomes
unresponsive
*With Web Workers we can execute code on a separate thread