Worker Playground!

Type your code into the following text area, and the app will eval() it in a Dedicated Worker, Shared Worker, and Service Worker, letting you know whether it is supported and what it returns in those contexts. For example, try XMLHttpRequest, registration, or location:

Dedicated Worker output:

Shared Worker output:

Service Worker output: