What is a Web Worker in Html5? Explain
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.