📜  JavaScript 代码示例中的矩形星形图案

📅  最后修改于: 2022-03-11 15:02:31.291000             🧑  作者: Mango

代码示例1
// Rectangle star pattern in JavaScript
let numberRectangleRow = 3;
let numberRectangleColumn = 8;
let stringRectangle = '';
for(let i=1; i<=numberRectangleRow; i++){
  for(let j=1; j<= numberRectangleColumn; j++){
    stringRectangle += '*';
  }
  stringRectangle += '\n';
}
console.log(stringRectangle);