JSFiddle - React, Tailwind, and code Playground

by praveen_jegan

HTML

<div>Click here!!!</div>

JavaScript

var myArr = [];
document.addEventListener('keypress', function(e) {
    var newContent = myArr.push(e.keyCode);
    console.log(myArr);
});