JSFiddle - React, Tailwind, and code Playground
by juristr
JavaScript
console.log = function(msg){
document.write(msg + "<br>");
};
var person = {
name: "John",
printName: function(){
console.log(this.name);
}
};
person.printName();
var anotherPerson = {
name: "Jack"
};
var printNameFunc = person.printName;
printNameFunc.call(anotherPerson);