Web Workers API

Web Workers API is a JavaScript runs in background without affecting other task of the page. To terminate a web worker use the terminate() method.

Code :