Which of the following is a global object for a new worker?
(a) WorkerGlobalScope
(b) Worker
(c) WorkerScope
(d) Window
(a) WorkerGlobalScope
(b) Worker
(c) WorkerScope
(d) Window
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The correct answer is (a) WorkerGlobalScope
The explanation is: A web worker is a JavaScript that runs in the background, independently of other scripts, without affecting the performance of the page. The WorkerGlobalScope is the global object for a new worker, and it is what a worker thread looks like, on the inside, to itself.