1.

Which of the following is a global object for a new worker?(a) WorkerGlobalScope(b) Worker(c) WorkerScope(d) Window

Answer» 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.


Discussion

No Comment Found

Related InterviewSolutions