JSFiddle - React, Tailwind, and code Playground
by lchau
HTML
<textarea id="output" rows="20" cols="50" readonly></textarea>
JavaScript
var output = new function() {
var element = document.getElementById("output");
this.debug = function(s) {
element.innerText += (element.innerText === "" ? "" : "\n") + s;
return s;
}
};
var thisIsTruthy = new Boolean(false);
if (thisIsTruthy) {
output.debug("Wat?!?");
}
var thisIsNotTruthy = Boolean(true);
if(!thisIsNotTruthy) {
output.debug("Wat?!?");
}