JSFiddle - React, Tailwind, and code Playground

by btipling

JavaScript

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


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