JSFiddle - React, Tailwind, and code Playground

by Dipak1991

JavaScript

// override your Object default toString method.

Object.prototype.toString = function () {
    console.dir('I am overriden method : -> ', this)
}

// declare a simple object with a simple propery 'a' on it
var obj = {
    a: 0
};

// call toString(() method & check your browser console
obj.toString();