JSFiddle - React, Tailwind, and code Playground
by ifandelse
JavaScript
var _charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
_idxA = 0,
_idxB = 0,
_idxC = 0,
_idxACompl = 0,
_idxBCompl = 0,
_idxCCompl = 0,
_Aoutput = "",
_Boutput = "",
_Coutput = "";
while(_idxACompl <= 3) {
for(_idxA; _idxA < _charset.length; _idxA++) {
_Aoutput = _charset.charAt(_idxA);
if(_idxACompl > 0) {
for(_idxB; _idxB < _charset.length; _idxB++) {
_Boutput = _Aoutput + _charset.charAt(_idxB);
if(_idxBCompl >= _charset.length) {
for(_idxC; _idxC < _charset.length; _idxC++) {
_Coutput = _Boutput + _charset.charAt(_idxC);
document.write(_Coutput + "<br />");
}
_idxCCompl++;
_idxC = 0;
document.write("---------------------------------------------<br/>");
document.write("_idxACompl = " + _idxACompl + "<br/>");
document.write("_idxBCompl = " + _idxBCompl + "<br/>");
document.write("_idxCCompl = " + _idxCCompl + "<br/>");
document.write("---------------------------------------------<br/>");
}
else {
document.write(_Boutput + "<br />");
}
}
_idxBCompl++;
_idxB = 0;
document.write("---------------------------------------------<br/>");
document.write("_idxACompl = " + _idxACompl + "<br/>");
document.write("_idxBCompl = " + _idxBCompl + "<br/>");
document.write("_idxCCompl = " + _idxCCompl + "<br/>");
document.write("---------------------------------------------<br/>");
}
else {
document.write(_Aoutput + "<br />");
...