let rows = 5; let t = ""; function rem1() { for(let i = 1; i <= rows; i++){ for(let j = 1; j <= rows; j++){ t = " *"; } document.getElementById("sum4").innerHTML += t + "<br />"; t++; } }