Where should you place the web worker code?

You are developing an HTML5 page named main.html. The JavaScript code for the main page is
located in a file named myApp.js.
You need to create a web worker and instantiate it from main.html.

Where should you place the web worker code?

You are developing an HTML5 page named main.html. The JavaScript code for the main page is
located in a file named myApp.js.
You need to create a web worker and instantiate it from main.html.

Where should you place the web worker code?

A.
In the myApp.js file

B.
In the main.html file

C.
In a separate .js (JavaScript) file

D.
In a separate executable file



Leave a Reply 0

Your email address will not be published. Required fields are marked *