JSFiddle - React, Tailwind, and code Playground

HTML

<ul id="res"></ul>

JavaScript

(function(){
    window.Test = function()
    {
    };
    window.Test.prototype.printThis = function(comment)
    {
       
        var li = $("<li/>").text(comment + Object.prototype.toString.call(this));
        $("#res").append(li);
    }
})();
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };

var target = new Test();

target.printThis("Direct invoke");
(target.printThis)("Extra parentesis");

var local = target.printThis;
local("Local variable invoke");

var boundLocal = __bind(target.printThis, target);
boundLocal("Bound local variable");