button.addEventListener("click", () => { let num = prompt("Enter the number of squares", "0"); let count = num * num; createDiv(count); container.setAttribute(`style`, `grid-template-columns: repeat(${num}, 1fr); grid-template-rows: repeat(${num}, 1fr);`); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)