Vidyalelo
JavaScript · Q26

Caching And Debugging

Programming · JavaScript · question 26

Q26

Which will be invoked to create a new worker?

A.
Function
B.
Destructor
C.
Constructor
Answer
D.
Interface

Answer: Option C

Solution

Answer: Option C
Solution:
To create a new worker, just use the Worker() constructor, passing a URL that specifies the JavaScript code that the worker is to run.