Dedicated workers are the workers dedicated to a single main script. That means the worker cannot interact with any other script, apart from the main script on the page or any other domain.
Let us try to understand dedicated workers by setting one up.