JSFiddle - React, Tailwind, and code Playground
by amatiasq
HTML
<script src="http://amatiasq.com/fiddle-console.js"></script>
JavaScript
function Base() { }
function SubType() {Â }
function YourCase() { }
SubType.prototype = Object.create(Base.prototype);
YourCase.prototype = Base.prototype;
Base.prototype.foo = 1;
SubType.prototype.foo = 2;
YourCase.prototype.foo = 3;
console.log(new Base().foo); // 3 WAT?
console.log(new SubType().foo); // 2
console.log(new YourCase().foo); // 3