JSFiddle - React, Tailwind, and code Playground

JavaScript

Function.prototype.me = function()
    {
        return this;
    };

    Function.prototype.extend = function(superClass)
    {
        var tmpClass = function() {};
        tmpClass.prototype = superClass.prototype;
        this.prototype = new tmpClass();
    };

    function BaseFunction()
    {
        var me = this;
    }

    Function.extend(BaseFunction);

    function Person(name)
    {
        var me = this; // Trying to eliminate the need for this line.

        this.name = name;

        this.alertName = function()
        {
            alert('my name is ' + me.name);
        };
    }

    var aPerson = new Person('Paul');
    setTimeout(aPerson.alertName, 1000);