JSFiddle - React, Tailwind, and code Playground

by alexflav23

HTML

<input name="test" id="test"></div>

JavaScript

function BigObject() {
    this.type = "change";
};
var count = 2;
function test() {
    var bigObject = new BigObject();
  $("#test").on("keydown", function(e) {
      if (count) {
          console.dir(bigObject);
          count--;
      } else {
          $("#test").off();
      }
  });
}

test();