1. Home
  2. Computer Science MCQs
  3. HTML
  4. Where does web worker(s) script run?

Added 20 Jan 2024

Where does web worker(s) script run?

  1. in forground
  2. in background Correct answer
  3. both a and b
  4. can’t determinte

Correct answer

B. in background

14 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs