JSFiddle - React, Tailwind, and code Playground

by btipling

JavaScript

function Thing() {
}
Thing.prototype.things = [];


var thing1 = new Thing();
var thing2 = new Thing();
thing1.things.push("foo");
console.log(thing2.things);