You are developing a web page that performs CPU-intensive calculations. A web worker
processes these calculations on a separate background thread. The process is instantiated
from the web page.
You need to stop the web worker process after the calculations are completed.
Which two actions can you perform to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)
A.
From the web page, call the close() method.
B.
From the web worker process, call the terminate() method.
C.
From the web page, call the terminate() method.
D.
From the web worker process, call the close() method.
Explanation:
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers