JSFiddle - React, Tailwind, and code Playground

by giddygeek

JavaScript

Object.prototype.say = function() {
    alert("I'm saying : " + this);
};

var x= 1;
var str = "hey";

x.say();
str.say();

alert(x.hasOwnProperty(say));