👩💻 Join our community of thousands of amazing developers!
If you have ever created a web application which requires different features (like push notifications, webcam access, midi access), you probably noticed that their APIs look very different. // for the geolocation API you need to call getCurrentPosition to check if geolocation is accessible navigator.geolocation.getCurrentPosition(gotLocation, didNotGetLocation); // for notifications we can directly check on the Notification object if (Notification.permission == 'granted') // do notification ...