JSFiddle - React, Tailwind, and code Playground

by btipling

JavaScript

function Thing1() {
}
Thing1.prototype.foo = "bar";

function Thing2() {
}
Thing2.prototype = new Thing1();


var thing = new Thing2();
console.log(thing.foo);