let str = ''
            for(let i = 1; i < 4; i++){
                str += `${'*'.repeat(i)}<br>`
            }
            triangle.innerHTML = str