JSFiddle - React, Tailwind, and code Playground JavaScript Function.prototype.my = function() { alert("anything"); } var x = console.log.my();