The Notifications API allows web pages to send notifications to the user's system notification center. Combined with a Service Worker, notifications can be shown even when the page is closed!
Key difference: Regular notifications (new Notification()) only work while the page is open.
Service Worker notifications (registration.showNotification()) persist and can respond to push events.
Send multiple notifications at once to see them stack up in the DevTools panel: