JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" onclick="bob.say()">eh</a>

JavaScript

function guy(person_name) {
  this.name = person_name;
  this.age = 32;
  this.say = function() {alert(this.name + " is " + this.age);
  return false;
};
}
      
var bob = new guy("Bob");