JSFiddle - React, Tailwind, and code Playground
by danShumway
JavaScript
function doIWork() {
this.x = 5;
this.cat = function(){
alert(this.x);
}
}
var y = new doIWork();
y.cat();
by danShumway
function doIWork() {
this.x = 5;
this.cat = function(){
alert(this.x);
}
}
var y = new doIWork();
y.cat();