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

PREVIOUS NEXT
Code Example
Javascript :: how to get current date in express js 
Javascript :: javascript set value html element by class 
Javascript :: convert multidimensional array to string javascript 
Javascript :: used to retrieve dat from firebase realtime datastore 
Javascript :: how to toggle fa fa-caret-down and fa fa-caret-up using jquery 
Javascript :: js detect user mobile 
Javascript :: loop inside react js 
Javascript :: how to get data form 
Javascript :: find duplicate values in array javascript 
Javascript :: Use parseInt() in the convertToInteger function so it converts the input string str into an integer, and returns it. 
Javascript :: import everything javascript 
Javascript :: nestjs 
Javascript :: Routes in react-router-dom@6 and take the path by useLocation() hook 
Javascript :: thymeleaf pass variable to javascript 
Javascript :: sum of array javascript 
Javascript :: how to encode uri in prereuqest script postman 
Javascript :: using hooks with apis 
Javascript :: js library for unique id uniqid 
Javascript :: what is the difference between console.log and return 
Javascript :: javascript palindrome 
Javascript :: Using Then To Create A Promise In JavaScript 
Javascript :: animejs reduce the speed 
Javascript :: convert string to float javascript 
Javascript :: how to add a variable in js 
Javascript :: add event listener to all a tags 
Javascript :: replace js 
Javascript :: create audio tag javascript 
Javascript :: jwt strategy 
Javascript :: classlist.contain in javascript 
Javascript :: send multipart form data axios with node js 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =