JSFiddle - React, Tailwind, and code Playground

HTML

<button id="button">Click Me</button>

JavaScript

// I want to push a trace to console table
function consoleTrace() {
  console.table([
   {
    'Name': 'Do Something',
    'Element': this,
    'Arguments': arguments
   }
  ]);
  console.log('Links work here', this, arguments);
  alert('Open your console dummy');
};

  
// attach events
document.getElementById('button').onclick = consoleTrace;