JSFiddle - React, Tailwind, and code Playground
JavaScript
String.prototype.myFunction = function() {
return this.toUpperCase();
}
var text = "sample text";
console.log(text.myFunction());
String.prototype.myFunction = function() {
return this.toUpperCase();
}
var text = "sample text";
console.log(text.myFunction());