Vidyalelo
JavaScript · Q25

Caching And Debugging

Programming · JavaScript · question 25

Q25

Which of the following is a global object for a new worker?

A.
WorkerGlobalScope
Answer
B.
Worker
C.
WorkerScope
D.
Window

Answer: Option A

Solution

Answer: Option A
Solution:
The WorkerGlobalScope is the global object for a new worker, and it is what a worker thread looks like, on the inside, to itself.