JSFiddle - React, Tailwind, and code Playground

by Qwerty_Wasd

JavaScript

const EventPoint = (function() {
    console.log('1'); 
    function EventPoint() {
       this.events = {};
   };
   return new EventPoint(); 
});
 
const EventPoint1 = (function() {
   console.log('2');
   function EventPoint() {
      this.events = {};
   };
   return EventPoint;
})();
new EventPoint();
new EventPoint1();