题解 | #直角三角形#
直角三角形
https://www.nowcoder.com/practice/7e8a7d83569d49aaa9bc4bb43a9d2d6e
var triangle = document.querySelector('.triangle'); // 补全代码 triangle.innerHTML = function () { let num = 1 let content = '' while (num <= 3) { num++ content += new Array(num).join('*')+ '<br/>' } return content }()