Q
Is browser JavaScript multithreaded on the main thread?
-
A
Yes, each function runs on its own thread
-
B
Only in Chrome
-
C
No; it runs on a single main thread with an event loop, and Web Workers provide background threads
-
D
Yes, when async is used
Correct Answer:
C. No; it runs on a single main thread with an event loop, and Web Workers provide background threads
Explanation:
Long-running scripts block the user interface.
ALSO KNOW (related points):
• Which web font format is the most efficient and universally supported in modern browsers? → WOFF2