for (let i = 1; i <= rows.value; i = i + 1) { for (let j = 1; j <= columns.value; j = j + 1) { // create square } }