JSFiddle - React, Tailwind, and code Playground
by rjzaworski
JavaScript
function constructorFunction(){
this.test="it works!";
this.doSomething = function(){
//this should return the contents of this.test
return this.test;
}
}
a=new constructorFunction();
b=new constructorFunction();
alert(a.doSomething());