JSFiddle - React, Tailwind, and code Playground

by Rod goooo

JavaScript

$(document).ready(function() {
		var Person = function(firstName){
    		if(!firstName) this.firstName = "Fulano";
    		else this.firstName = firstName;
        this.dizerOla = function(){ alert( "\t" + this.firstName + " diz: \"olá\"."); }
    };

    var a = new Person("Alberto");
    a
});