JSFiddle - React, Tailwind, and code Playground
by Nick Karnik
JavaScript
var global = 1;
debugger;
var Person = (function() {
this.test1 = 123;
return {
Test: function() { return "test"; }
}
})();
Person.prototype = {
TestPrototype: function() { return "Test prototype"; },
TestPrototypeVariable: function() { return "Test prototype variable: " + this.test1; }
}
var a = new Person();
var b = new Person();
debugger;
a.TestPrototype();
a.TestPrototypeVariable();