const options = {
body: "Your code submission has received 3 new review comments.",
data: {
url: "https://example.com/review/12345",
status: "open",
},
};
const n = new Notification("New review activity", options);
console.log(n.data); // Logs the data objectNotification: data property / notebook
Notification: data property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.