JSFiddle - React, Tailwind, and code Playground

JavaScript

String.prototype.foo = function() {
    return this + "+";
}

var str = "Notepad";
alert(str.foo().foo().toUpperCase());