1.

Which will be invoked to create a new worker?(a) Function(b) Destructor(c) Constructor(d) InterfaceThis question was posed to me in examination.My question is from Web Workers in division Caching, Debugging and Animation of JavaScript

Answer»

Correct answer is (c) CONSTRUCTOR

Explanation: When EXECUTING scripts in an HTML page, the page becomes unresponsive until the script is finished. To create a NEW WORKER, just use the Worker() constructor, passing a URL that specifies the JavaScript code that the worker is to run :



Discussion

No Comment Found

Related InterviewSolutions