JSFiddle - React, Tailwind, and code Playground
by amir_ch
JavaScript
var editor; // name space for the application
function Debugger() {
this.debugLevel = -1;
this.Log = function(msg){
if (this.debugLevel == 0)
console.log(msg);
if (this.debugLevel == 1)
alert(msg);
}
}
// init application
(function (editor) {
editor.userID = ""; // user ID
editor.debug = new Debugger(); // start debugger
editor.debug.debugLevel = 1; // output debug messages to Alert
editor.debug.Log("Main Module Ready!"); // new session debugger printout
} (editor = editor || {}));