JSFiddle - React, Tailwind, and code Playground

by CntChen

JavaScript

var obj = { 
name: 'A nice demo', 
fx: function() { 
console.log(this.name); 
} 
}; 
window.name = 'I am such a beautiful window!'; 
function runFx(f) { 
f(); 
} 
var fx2 = obj.fx; 
runFx(obj.fx); 
runFx(fx2);