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 = EventPoint;
let b = EventPoint; 
console.log(a===b); 
a = EventPoint1;
b = EventPoint1; 
console.log(a===b);