JSFiddle - React, Tailwind, and code Playground

HTML

<pre></pre>

JavaScript

Object.defineProperty(Object.prototype, 'hashCode', {
  value: function() {
    report("Object")
  },
  writable: true,
  enumerable: false
});

String.prototype.hashCode = function() {
  report("String")
};
Number.prototype.hashCode = function() {
  report("Number")
};

function report(s) {
  document.querySelector("pre").textContent += s + "\n"
}

new String().hashCode()
new Number().hashCode()
new Object().hashCode()