programming-examples/js/Conditional/Write a JavaScript program to construct the following pattern, using a nested for loop..js
2019-11-15 12:59:38 +01:00

10 lines
165 B
JavaScript

var x,y,chr;
for(x=1; x <=6; x++)
{
for (y=1; y < x; y++)
{
chr=chr+("*");
}
console.log(chr);
chr='';
}