Ans is yes
So thread word can be replace with worker thats it.
lets see example of running a very very slow function
Above is our html and it contain a script
Above is normal event function and a very very slow event function
so when you click on slowFunc button your browser will be freeze till the time execution completes and you have to wait to perform any activity until it becomes normal.
Now lets create our worker file as well
This is an example of dedicated worker in which on click of slowFunc button a worker constructor funtion gets called and load worker.js file and use a postMessage method to notify the worker file about the execution of task and your task will run in separate thread and you can perform any activity as no function is blocking you to do anything.
Hopefully this article is understandable to you
In next we will be discussing shared thread.