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

Việt Quân

New member
Which of the following is a global object for a new worker?
A. WorkerGlobalScope
B. Worker
C. WorkerScope
D. Window
 
Answer: a
Explanation: 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.
 

Tìm kiếm

Back
Top