JSFiddle - React, Tailwind, and code Playground
by abell25
HTML
<h2>Result</h2><div id="out"></div>
JavaScript
function dump(text) {
document.getElementById("out").innerHTML += " " + text + " <br />";
}
dump("**********************started**********************");
var list = ["cat", "dog", "horse", "pig"];
var nums = [23, 45, 0, 67, 200];
$.each(nums, function() {
dump(this);
});
for (var i in list) { dump(list[i]); }
dump("i aM MiXEd capS!1234_-+*&^%$!@#()".replace(/ /g, "-").toUpperCase());