Vidyalelo
JavaScript · Q30

Caching And Debugging

Programming · JavaScript · question 30

Q30

Which is the function that allows a worker to terminate itself?

A.
close()
Answer
B.
exit()
C.
terminate()
D.
halt()

Answer: Option A

Solution

Answer: Option A
Solution:
The close() function allows a worker to terminate itself, and it is similar in effect to the terminate() method of a Worker object.