JSFiddle - React, Tailwind, and code Playground
by tuanderful
JavaScript
/* Digesting JavaScript: The Good Parts
Ch 4: Functions : Method Invocation Pattern
*/
var foo = {
bar: function(){
console.log(this);
document.write("foo.bar invoked");
}
};
foo.bar; //does nothing
foo.bar();