Home

Draw blocks

6

for

123456

while

123456

do while

123456

const e=document.getElementById("block");e.addEventListener("change",(function(n){const t=e.value;let o="";for(let e=0;e<t;e++)o+=`<span>${e+1}</span>`;document.querySelector("main section:first-of-type div").innerHTML=o,o="";let c=0;for(;c<t;)o+=`<span>${c+1}</span>`,c++;document.querySelector("main section:nth-of-type(2) div").innerHTML=o,o="",c=0;do{o+=`<span>${c+1}</span>`,c++}while(c<t);document.querySelector("main section:last-of-type div").innerHTML=o})),e.dispatchEvent(new Event("change"));
//# sourceMappingURL=drawBlocks.js.map