Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Square star pattern in JavaScript

// Square star pattern  in JavaScript
let numberSquare = 5;
let stringSquare = '';
for(let i=1; i<=numberSquare; i++){
  for(let j=1; j<=numberSquare; j++){
    stringSquare += '*';
  }
  stringSquare += '
';
}
console.log(stringSquare);
Comment

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);
Comment

PREVIOUS NEXT
Code Example
Javascript :: how presist state in nuxt.js 
Javascript :: console.log json array 
Javascript :: react native star rating component 
Javascript :: how to use moment in angular 8 
Javascript :: javascript escape comma in csv 
Javascript :: js to jquery converter online 
Javascript :: cant resolve module after typescript install 
Javascript :: add content in textarea by clicking on button 
Javascript :: numbers Math 
Javascript :: sequlize where clause involving associated relationship 
Javascript :: Temporarily Edit Text on Any Website 
Javascript :: date pretty print javascript 
Javascript :: constantly send a request until a desired response is recieved expressjs 
Javascript :: add atribut readonly on form js 
Javascript :: nvm install a particular version 
Javascript :: rename data table button 
Javascript :: mongoose schema aggregation lookup multiple collections 
Javascript :: index javascript array 
Javascript :: remember previous window javascript 
Javascript :: kitten ui input height multiline 
Javascript :: array min value in vmware_vro 
Javascript :: call url many times 
Javascript :: cpprestsdk json 
Javascript :: Error: Node Sass version 7.0.1 is incompatible with ^4.0.0. angular 
Javascript :: form needs 2 clicks to submit react 
Javascript :: how can i add + buttons for expand and - button for collapse in react 
Javascript :: Private slots are new and can be created via Private slot checks 
Javascript :: javascirpt escape tab 
Javascript :: threejs check if camera is pointing towards object 
Javascript :: setstate too slow 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =