A web worker in HTML5 is a script that runs on a separate thread in the background without the need for the main web page to wait for it to complete. Web Workers enable long tasks to be achieved without keeping the web page responsive.

There are two types of web workers - Dedicated workers and Shared workers.

BY Best Interview Question ON 19 Dec 2019