JSFiddle - React, Tailwind, and code Playground

by Dan Pasca

JavaScript

$(document).ready(function () {
    function Human(name, age) {
        this.name = name;
        this.age = age;
        this.start();
    }

    Human.prototype = {
        start: function () {
            $('body').click(function () {
                alert('body was clicked');
            });
            }
        }
    
    var x = new Human('John', 18);
}