JSFiddle - React, Tailwind, and code Playground

by veer712

JavaScript

var Notifications = function(){
    this.read = true;
};

Notifications.prototype.open = function(){
    alert('opening');
}

Notifications.prototype.close = function(){
    alert('close');
}

Notifications.prototype.fetchInfo = function(){
    alert('fetching info from browser');
}

Notifications.prototype.remove = function(){
    alert('removing notification');
}

var n = new Notifications();
n.close();