Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Rectangle star pattern in JavaScript

// 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 += '
';
}
console.log(stringRectangle);
 
PREVIOUS NEXT
Tagged: #Rectangle #star #pattern #JavaScript
ADD COMMENT
Topic
Name
7+7 =