JSFiddle - React, Tailwind, and code Playground
by phloe
JavaScript
var chars = [];
var code = 65;
var num = 7;
var endCode = coed + num;
while (code <= endCode) {
chars.push(String.fromCharCode(code++));
}
var levels = 5;
var dom = [populate(0)];
function populate (i) {
return chars.map(function (char) {
return ["div." + char, (i < levels) ? populate(i+1): []];
});
}
console.log(dom);