JSFiddle - React, Tailwind, and code Playground
by Qwerty_Wasd
JavaScript
let EventPoint = (function() {
function EventPoint() {
this.events = {};
};
return new EventPoint();
});
let EventPoint1 = (function() {
function EventPoint() {
this.events = {};
};
return EventPoint;
})();
let a = new EventPoint();
let b = new EventPoint();
console.log(a==b);
a = new EventPoint1();
b = new EventPoint1();
console.log(a==b);