JSFiddle - React, Tailwind, and code Playground

by Darby Rathbone

HTML

<button onclick='console.log("test")'>test</button>

JavaScript

var foo = {
    foo: function () {
        return "foo"
    }
}, baz = Object.create(foo),
    bar = Object.create(foo);
bar.foo = function () {
    return 'bar'
};
console.log(foo.foo(), baz.foo(), bar.foo());
var test = 
Object.getPrototypeOf(baz).foo = function () {
    return 'baz'
};
console.log(foo.foo(), baz.foo(), bar.foo());
console.log(Object.getPrototypeOf(console).log);