Service Worker registration
I learnt how to register a service worker.  Here is how its done:   if('serviceWorker' in navigator){...
Tags: 100daysofcode, javascript, pwa