Where does web worker(s) script run?
Correct answer
B. in background
14 views
B. in background
14 views
A web worker's script runs in the background, on a thread separate from the page's main thread. Heavy calculations can therefore run without freezing the user interface.
Workers have no access to the DOM and communicate with the page by passing messages with postMessage().
Keep preparing with more Computer Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.