DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
JavaScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
JavaScript
Why does a long, synchronous while-loop 'freeze' a web page?
A
It crashes the browser's rendering engine
B
It occupies the single JS thread, so the event loop can never check the queues or let the browser paint until the loop finishes
C
It fills up the macrotask queue completely
D
Synchronous loops don't actually block anything in modern browsers
Check Answer