_x000D_
/** --------------_x000D_
_x000D_
*_x000D_
**_x000D_
***_x000D_
****_x000D_
*****_x000D_
******_x000D_
*******_x000D_
********_x000D_
*********_x000D_
_x000D_
_x000D_
----------------*/_x000D_
_x000D_
let y = 10;_x000D_
let x = 10;_x000D_
_x000D_
let str = "";_x000D_
_x000D_
for(let i = 1; i < y; i++ ){_x000D_
for(let j = 1; j < x; j++){_x000D_
if(i + j >= y){_x000D_
str = str.concat("*");_x000D_
}else{_x000D_
str = str.concat(" ")_x000D_
}_x000D_
}_x000D_
str = str.concat("\n")_x000D_
}_x000D_
_x000D_
console.log(str)_x000D_
_x000D_
_x000D_
/**________________________x000D_
_x000D_
_x000D_
_x000D_
*********_x000D_
********_x000D_
*******_x000D_
******_x000D_
*****_x000D_
****_x000D_
***_x000D_
**_x000D_
*_x000D_
_x000D_
_x000D_
_______________________*/_x000D_
_x000D_
let str2 = "";_x000D_
_x000D_
for(let i = 1; i < y; i++ ){_x000D_
for(let j = 1; j < x; j++){_x000D_
if(i <= j ){_x000D_
str2 = str2.concat("*");_x000D_
}else{_x000D_
str2 = str2.concat(" ")_x000D_
}_x000D_
}_x000D_
str2 = str2.concat("\n")_x000D_
}_x000D_
_x000D_
console.log(str2)_x000D_
_x000D_
_x000D_
/**----------------------_x000D_
_x000D_
_x000D_
*_x000D_
**_x000D_
***_x000D_
****_x000D_
*****_x000D_
******_x000D_
*******_x000D_
********_x000D_
_x000D_
_x000D_
-------------------------*/_x000D_
_x000D_
_x000D_
let str3 = "";_x000D_
_x000D_
for(let i = 1; i < y; i++ ){_x000D_
for(let j = 1; j < x; j++){_x000D_
if(i >= j ){_x000D_
str3 = str3.concat("*");_x000D_
}_x000D_
}_x000D_
str3 = str3.concat("\n")_x000D_
}_x000D_
_x000D_
console.log(str3)_x000D_
_x000D_
/**-------------------------_x000D_
_x000D_
_x000D_
*********_x000D_
********_x000D_
*******_x000D_
******_x000D_
*****_x000D_
****_x000D_
***_x000D_
**_x000D_
*_x000D_
_x000D_
---------------------------*/_x000D_
let str4 = "";_x000D_
_x000D_
for(let i = 1; i < y; i++ ){_x000D_
for(let j = 1; j < x; j++){_x000D_
if( j >= i ){_x000D_
str4 = str4.concat("*");_x000D_
}_x000D_
}_x000D_
str4 = str4.concat("\n")_x000D_
}_x000D_
_x000D_
console.log(str4)_x000D_
_x000D_
/**--------------------_x000D_
Diamond of Asterisks_x000D_
_x000D_
*_x000D_
***_x000D_
*****_x000D_
*******_x000D_
*********_x000D_
*******_x000D_
*****_x000D_
***_x000D_
*_x000D_
_x000D_
_x000D_
---------------------*/_x000D_
_x000D_
let str5 = "";_x000D_
_x000D_
for(let i = 1; i < y; i++ ){_x000D_
for(let j = 1; j < x; j++){_x000D_
if(i <= y / 2 && j >= (y / 2) - (i - 1) && j <= (y / 2) + (i - 1) ){_x000D_
str5 = str5.concat("*");_x000D_
}else if(i >= y / 2_x000D_
&& j > ((y / 2) - i) * (-1)_x000D_
&& j < (y - ((y / 2) - i) * (-1))){_x000D_
str5 = str5.concat("*");_x000D_
}_x000D_
else {_x000D_
str5 = str5.concat(" ");_x000D_
}_x000D_
}_x000D_
str5 = str5.concat("\n");_x000D_
}_x000D_
_x000D_
console.log(str5)
_x000D_