What is a valid event for a Service Worker to emit when it’s registered?

What is a valid event for a Service Worker to emit when it’s registered?

1:-Canceled
2:-Install
3:-Idle
4:-Stop
Correct answer is:

Install    
Explanation: To install a service worker for your site, you need to register it, which you do in your page’s JavaScript. Registering a service worker will cause the browser to start the service worker install step in the background.

What is a valid event for a Service Worker to emit when it’s registered?
What is a valid event for a Service Worker to emit when it’s registered?

Leave a Reply

Your email address will not be published. Required fields are marked *