JSFiddle - React, Tailwind, and code Playground
by phloe
JavaScript
var Constructor = function (name) {
this.isInstance = true;
this.name = name;
}
var factory = function factory (name) {
return {
isInstance: false,
name: name
};
}
var C = new Constructor("constructor"),
f = factory("factory");
if (window.console) {
console.log("stuff", Constructor);
}